简体   繁体   English

Google Map链接到外部站点的标记

[英]Google Map link to markers from external site

i have a question. 我有个问题。 My website has link Show on Map that points to custom google map. 我的网站上有链接“在地图上显示”,指向自定义Google地图。 That custom google map has 30ish markers, and when you click link from website, it opens that map, and focuses corresponding marker there. 该自定义google地图具有30ish标记,当您单击网站上的链接时,它将打开该地图,并在其中聚焦相应的标记。 So you use show on map for marker 1, custom map opens and focuses marker 1 with info bubble. 因此,您可以在地图上将Show 1用于标记1,自定义地图将打开,并将标记1对准信息气泡。 link is here 链接在这里

<a href="http://maps.google.com/maps/ms?msa=0&amp;msid=202453748669122555293.0004ab5452234ae2281f9&amp;hl=hr&amp;ie=UTF8&amp;t=h&amp;vpsrc=6&amp;ll=44.833596,14.728954&amp;spn=0.007304,0.013733&amp;z=16&amp;iwloc=0004ad9b633f7bf6421e7&amp;" rel="external" class="button">Show on map</a>

link to map 链接到地图

Now, since i need to replicate that Google Map because i dont have acess to it anymore, i am wondering how to get link to certain marker? 现在,由于我不再需要它,因此我需要复制该Google Map,所以我想知道如何获得指向某些标记的链接? Since website doesnt have any javascript or anything regarding Goolge Maps, are those links hardcoded on custom map in source code or something? 由于网站上没有任何JavaScript或有关Goolge Map的任何内容,这些链接是否以源代码或其他方式硬编码在自定义地图上? Since i know iwloc and coordiantes change on links.. But on source code of that custom map iwloc is same on 3-4 ocurrances in page. 因为我知道iwloc和coordiantes在链接上会发生变化。.但是在该自定义地图的源代码中,iwloc在页面上的3-4次出现时是相同的。

Any help is welcome. 欢迎任何帮助。 I tryed to search here but everyone makes some javascript solution. 我试图在这里搜索,但每个人都提供了一些JavaScript解决方案。 I want it to be like now... only link to that marker. 我希望它像现在...仅链接到该标记。 Thanks 谢谢

打开特定的地图,打开所需的infoWindow(通过单击标记或侧边栏中的项目),然后复制单击共享按钮时将显示的简短URL (在侧边栏中的右上角) )

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM