开发者

Display PNG over Google Maps without creating dead spot?

开发者 https://www.devze.com 2023-03-30 04:40 出处:网络
I\'m overlaying a (mostly transparent) PNG on Google Maps using CSS, but it\'s creating a large dead spot on the map where the user can\'t drag the map.

I'm overlaying a (mostly transparent) PNG on Google Maps using CSS, but it's creating a large dead spot on the map where the user can't drag the map.

Could anyone suggest how to get round this?

The obvious solution would be to use a marker overlay, but I can't do this - see Keep Google Maps marker in centre of map while dragge开发者_开发知识库d?

Thanks!


Try adding pointer-events:none; to the CSS for the overlay image, and see if this allows you to click through the image to the map. I tested this in Mozilla Firefox 6. You can click through the semi-transparent image and select the text: http://jsfiddle.net/tJQWx/

0

精彩评论

暂无评论...
验证码 换一张
取 消