Is it possible to use the DrawingManager library to draw polylines and polygons on a Google StreetView overlay?
I would like to implement some house height and roof angle measuring functions via user-drawn polyline(s), but even if I instantiate and enable the DrawingManager on a StreetView overlay, all mouse and keyboard events simply control the StreetView navigation instead of actually drawing polylines and polygons.
It seems that the DrawingManager library will not work on a StreetView overlay. Is this correct? Or do I need to disable a bunch of StreetView options like panning and zooming controls for this to work?
I am almost sure that you can't draw it over google maps, even disabling all the options you stated.
Related
I am using the HERE Map Javascript tools and I have a map with various markers. I want users to be able to draw a shape using their mouse on the map. Any markers that are within the shape's bounds should be "touched" (i.e. updated with my prefs etc.).
I see that Google Maps users are able to do it, as in the following post: Box/Rectangle Draw Selection in Google Maps
I wonder if it's possible to do this easily using Here Maps?
I am working with a google map api 3, on my map i want to generate kml markers after polygons, but it is not working, my markers are generate before polygons so i am not able to click marker.
Native Google Maps Javascript API v3 polygons will always appear on top of KML layers. If you want to control the order, use a KmlLayer to display the polygon as well, add that layer first or control the order with the zIndex property of the KmlLayers.
related question: https://stackoverflow.com/questions/35455830/kml-ordering-in-google-maps-api (including example)
I'm using google maps api v3.
I'm displaying InfoWindow,and we know that unless auto-pan is disabled, an InfoWindow will pan the map to make itself visible when it is opened.
But i want to make the infowindow is fully visible when it opens with out pan the map,like intelligently switch the position and dimensions of the InfoWindow depending on where the edge is.
Maybe some would suggest smartinfowindow, but there is some problems with smartinfowindow,you can test it.
Is there any other way?
Thank you very much!
Hi I am using the code here http://rominirani.com/html5-recipes-more-on-geolocation/ to implement a user tracking app built in HTML5.
The issue I have is that whenever I move, the map completely re-renders. Is there a way to just update the marker position and set the center of the map to that position or is there a better way to implement Google maps with a marker that moves when the user moves?
Thanks
You can combine the HTML5 geolocation API with Google Maps to add/remove a marker on a position change listener
navigator.geolocation.watchPosition
https://google-developers.appspot.com/maps/documentation/javascript/examples/overlay-remove
We're using the Google Maps API for Flash (v1.19a) and when we add a marker to it or an overlay, the map gets blurry...
Does anyone have a workaround for this?