Google Maps transparent image overlay

可紊 提交于 2020-01-11 07:12:13

问题


Im looking for some examples of a transparent fixed postion image that overlays a map. When moving the map, the transparent image should not move and the markers should appear on top of the image.

Does anyone know of any examples?


回答1:


There's a way with a div on top of another one. It positions a + marker over the center of the map.

http://code.google.com/p/gmaps-samples-v3/source/browse/trunk/geocoder/getlatlng.html

the crosshair image is http://code.google.com/p/gmaps-samples-v3/source/browse/trunk/geocoder/crosshair.gif

Test here: http://jsfiddle.net/Q27DD/1/



来源:https://stackoverflow.com/questions/9795644/google-maps-transparent-image-overlay

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!