dongwei3336 2011-07-14 19:19
浏览 41
已采纳

隐藏Google地图中的纬度和经度

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.

<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.

  • 写回答

1条回答 默认 最新

  • duanlieshuang5330 2011-07-14 20:09
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 51单片机中C语言怎么做到下面类似的功能的函数(相关搜索:c语言)
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序
  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题