Saturday, January 19, 2013

[Google Maps API v2] Re: Sensor

Hi
I've got the same problem and do understand the English.
I've set the sensor to TRUE but it is still returning an error.
This is the code I am using:
<!doctype html>

 
   
    <style type="text/css">
      html { height: 100% }
      body { height: 100%; margin: 0; padding: 0 }
      #map_canvas { height: 100% }
    </style>
    <script type="text/javascript"
      src="https://maps.googleapis.com/maps/api/js?key=MYPRIVATEKEY&sensor=SET_TO_TRUE">
    </script>
    <script type="text/javascript">
      function initialize() {
        var mapOptions = {
          center: new google.maps.LatLng(53.787, -2.082),
          zoom: 8,
          mapTypeId: google.maps.MapTypeId.ROADMAP
        };
        var map = new google.maps.Map(document.getElementById("map_canvas"),
            mapOptions);
      }
    </script>
 
 
    <div id="map_canvas" style="width:100%; height:100%"></div>
 
</!doctype>

On Thursday, 26 January 2012 11:07:15 UTC, davie wrote:
Hi
RTFD http://code.google.com/apis/maps/documentation/javascript/tutorial.html
The sensor parameter of the URL must be included, and indicates
whether this application uses a sensor (such as a GPS locator) to
determine the user's location. We've left this example as a variable
set_to_true_or_false to emphasize that you must set this value to
either true or false explicitly.
Regards Davie

On Jan 25, 8:53 pm, Marcelo <marcelo...@hotmail.com> wrote:
> "pls" kindly set the value of your sensor parameter to true or false.
>
> Translated from English to English by anyone.
>
> --
> Marcelo -http://maps.forum.nu
> --
>
> On Jan 24, 4:25 am, JANA JANA <janaj1...@gmail.com> wrote:
>
>
>
>
>
>
>
> > How to solve this type of error
>
> > The Google Maps API server rejected your request. The "sensor"
> > parameter specified in the request must be set to either "true" or
> > "false"
>
> > pls kindly help me

--
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate