Hi,

Have you looked at using a custom marker image with a Circle overlay? You
can find out how to use it here in the reference
http://code.google.com/apis/maps/documentation/v3/reference.html#MarkerImage
 and http://code.google.com/apis/maps/documentation/v3/reference.html#Circle

A simple example is here:
http://gmaps-samples-v3.googlecode.com/svn/trunk/circle-overlay/circle-overlay.html

In terms of figuring out the accuracy you can read through the html5
geolocation spec draft - http://dev.w3.org/geo/api/spec-source.html

Hope this helps.

- Luke


On Sun, Apr 18, 2010 at 11:57 AM, Narksweb <[email protected]> wrote:

> Hi there! I just discovered Google groups and i need a little help
> with my script to change the location marker to a blue little circle
> and add a transparent circle around for the accuracy. Someone can help
> me please? Thank you very much.
>
> Below's the script from Google for iphone app :
> Any help will be appreciated!
>
> Thank you very much.
>
>
> <script type="text/javascript">
> var initialLocation;
> var newyork = new google.maps.LatLng(40.69847032728747,
> -73.9514422416687);
>
> function initialize() {
>  var myOptions = {
>    zoom: 14,
>    mapTypeId: google.maps.MapTypeId.ROADMAP
>  };
>  var map = new google.maps.Map(document.getElementById("map_canvas"),
> myOptions);
>
>  // Safari supports the W3C Geolocation method
>  if(navigator.geolocation) {
>    navigator.geolocation.getCurrentPosition(function(position) {
>
>      initialLocation = new
> google.maps.LatLng(position.coords.latitude,position.coords.longitude);
>
>      var placeMarker = new google.maps.Marker({
>        position: initialLocation,
>        map: map,
>      });
>      map.setCenter(initialLocation);
>    }, function() {
>      handleNoGeolocation(browserSupportFlag);
>    });
>  } else {
>    // Browser doesn't support Geolocation
>    handleNoGeolocation();
>  }
>
>  function handleNoGeolocation() {
>    initialLocation = newyork;
>    map.setCenter(initialLocation);
>  }
> }
> </script>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to