开发者

Hiding the latitude and longitude in a Google Map

I am working on a Google Map that shows a spot on the map that supposed to stay secret for users. So my question is how to hide the lat and lng in my Google map. Users shouldn't see the lat and lng in the page source code, because it would spoil the secret. It's an absolute secret. Currently i'm using Google maps static api (image maps) in combination with php.

I'm wondering how I could hide these values in a safe way. Waterproof as can be.

Thanks in advance.

edit: this is the code I use for the static map image.

<开发者_如何学JAVA;img border="0" src="http://maps.google.com/maps/api/staticmap?center=&zoom=<?php echo $zoomLevel;?>&size=246x179&markers=color:Red%3Clabel:A%7C52.138433,5.218506&sensor=false" />

so the 52.138433 and 5.218506 are the values that I want to hide for public.


Due to the nature of html and the fact that the static maps API requires you to point your image to a url, you can not really hide this from someone who is looking at your source code.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜