Hi, I am currently working on a project that requires the google maps
'my location' function,  and have limited understanding of
implementing the API.

How do you get the 'my location' button to appear on your map?

I want the map to centre on a particular location, then if the button
is clicked I want it to move its centre the IP, or for a mobile device
the geolocation.

To get this feature on my map is it something to do with the version i
am using or later in the Java?


my code looks like this at the moment.....

<script src="http://maps.google.com/maps?
file=api&v=2&key=ABQIAAAAiVFbQZj4frhq_wvrqL2cZRQeDjhc2iN0E8ABHvfgd2cbr7gkzRS6PImGxQ1wKhGugkzqNFs6V6vzPw&sensor=true"
            type="text/javascript"></script>
    <script type="text/javascript">





    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(53.50, -5.00), 7);
        map.setUIToDefault();
      }
    }

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to