Found an answer to this! I used geolocationmarker-compiled.js (at
http://code.google.com/p/google-maps-utility-library-v3/source/browse/trunk/geolocationmarker/src/geolocationmarker-compiled.js?r=379)
and then added
var GeoMarker;
GeoMarker = new GeolocationMarker();
GeoMarker.setCircleOptions({
fillColor: '#808080'});
google.maps.event.addListenerOnce(GeoMarker, 'position_changed',
function() {
map.setCenter(this.getPosition());
map.fitBounds(this.getBounds());
});
google.maps.event.addListener(GeoMarker, 'geolocation_error',
function(e) {
alert('There was an error obtaining your position. Message: ' +
e.message);
});
GeoMarker.setMap(map);
and it works great. Mobile map with Geolocation working is located at
http://alert.fcd.maricopa.gov/alert/Google/v3/mobile.html and the
geolocation code in in the mobilemap_v3.js file if anyone is looking to do
the same thing.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.