使用Google静态地图将包含大量数据的Google地图转换为静态地图 [英] Convert Google map with huge amount of data to a static using Google Static Maps

查看:294
本文介绍了使用Google静态地图将包含大量数据的Google地图转换为静态地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将使用Google地图制作的地图转换为静态地图。
问题是地图有大量的数据(主要是圆圈),它的表示必须做它的圆形轨迹的路径描述,而我需要某种精确的,纯圆圈必须显示在静态模式,所以每个圈子的描述大约是500个字符(编码)。



Google静态地图url限制为8192,不足以渲染这些形状。
还有另外一种方法可以做到吗?我也尝试使用html2canvas,但它被Google禁止。 解决方案

实际上,Google最近将URL限制扩展到 8192 ,但如果你需要的不仅仅是你需要按照 xomena 的建议采取Google地图JavaScript API地图的屏幕截图。


I need to convert a map built with Google Maps to a static map. The problem is that map has an amount of data (mainly circles), and its representation has to be doing a path description of its circunference, and I need some kind of accurate, a pure circle has to be displayed in the static mode, so each circle description is about 500 chars (encoded).

The Google Static Maps url limit is 8192 and its not enough for rendering those shapes. There is another way for doing it? I also tried to use html2canvas, but it is forbidden by Google.

解决方案

Google actually recently extended the URL limit to 8192, but if you need more than that you probably need to resort to taking a screenshot of a Google Maps JavaScript API map, as suggested by xomena.

这篇关于使用Google静态地图将包含大量数据的Google地图转换为静态地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆