简体   繁体   English

Google Maps API v3客户端切片?

[英]Google Maps API v3 client-side tiling?

I am using the Google Maps API v3 with a custom 6000x6000 pixel map image, originally about 6MB of disk space. 我正在使用带有自定义6000x6000像素地图图像的Google Maps API v3,最初的磁盘空间约为6MB。 After I used a program to create tiles compatible with Google Maps, I got about 5,300 tiles totaling around 120MB of disk space. 在使用程序创建与Google Maps兼容的图块之后,我得到了大约5300个图块,总计约120MB磁盘空间。 Viewing the map online is incredibly slow because those tiles have to be downloaded from the server each time. 在线查看地图的速度非常慢,因为每次都必须从服务器下载这些图块。 Is there a way to make it so the client downloads the original 6MB 6000x6000 map PNG then creates tiles client-side as needed? 有没有一种方法可以使客户端下载原始的6MB 6000x6000地图PNG,然后根据需要在客户端创建图块?

You need to make your own tiling programm. 您需要制作自己的切片程序。 Google uses az morton curve to subdivide the map. Google使用z morton曲线细分地图。 A z morton curve is really simple and it's only some bit shift. Z morton曲线非常简单,只是有些位移。 But you need the client permission to download a file? 但是您需要客户端许可才能下载文件吗? So, no. 所以不行。

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

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