简体   繁体   English

Google /必应地图显示所有城市

[英]Google / Bing Maps Show All Cities

Trying to find a way without zooming in real close to tell Google or Bing maps to show all cities. 尝试找到一种无需放大真实距离即可告诉Google或Bing地图显示所有城市的方法。 Bing does a good job for the most part but still when you zoom in it shows a whole different set of cities. 必应在大多数情况下都做得很好,但是当您放大它时,仍然可以看到一组完全不同的城市。

I have a large monitor this map is going to be sitting on and really need it to show more than just the cities it shows on for example zoom level 8 or 9 on Google. 我有一台大型显示器,该地图将要放置在该显示器上,确实需要它显示的不仅仅是显示的城市,例如Google的8或9级缩放。 Right now I load in roughly 2900 different locations and mark them on the map so I am trying to do it via the API no just going to maps.google.com 现在,我在大约2900个不同的位置加载并在地图上标记它们,因此我尝试通过API进行操作,而不仅仅是访问maps.google.com

Has anyone come up against this issue and found a fix? 有谁遇到这个问题并找到解决方法? Did some searching here as well on Google and maybe looking it up wrong but haven't found anyone looking for something like this. 在Google上也进行了一些搜索,可能查找错误,但没有找到任何人在寻找这样的东西。

Hi you can do that by using the Image Map Type API by implementing the mapType interface. 嗨,您可以通过实现mapType接口使用Image Map Type API来实现。 Please refer to this link and implement the code in the way given in the example, replacing details with your specifications. 请参考此链接,并以示例中给出的方式实施代码,用您的规范替换详细信息。

Hope this will help!! 希望这会有所帮助!

I couldnt find either enough information to get "mapType" to work how I was wanting or it just doesnt do it. 我找不到足够的信息来获取“ mapType”以达到我想要的工作,或者它没有做到这一点。 The goal was to be at lets say a zoom level of 8 and see every city in the US. 我们的目标是将缩放比例设为8,并查看美国的每个城市。 I couldnt get any of the suggestions to do that. 我没有任何建议可以做到这一点。

Here is what I found that allowed me to do it my self though: http://google-maps-utility-library-v3.googlecode.com/ 这是我发现允许自己完成的事情: http : //google-maps-utility-library-v3.googlecode.com/

Basically I put in a transparent marker so it didnt show up then put info boxes with the names. 基本上我放了一个透明标记,所以它没有显示出来,然后放了带有名称的信息框。 This actually worked really well for me because I can zoom out 100% and still see all the names. 这实际上对我来说非常有效,因为我可以缩小100%并仍然看到所有名称。 Although at that level they would be overlapping being able to zoom in and out a few ticks and still see everything is great. 尽管在那个级别上它们可以重叠放大和缩小几个刻度,但仍然看到一切都很好。

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

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