简体   繁体   中英

Custom Google Map overlay?

How can you use a custom tileset/overlay on a Google map, like was done here:

http://www.philaplace.org

That is pretty cool, and I would like to experiment with this.

There are a couple different ways to do it. One way is to create a GTileLayer object and implement the getTileURL() to return the URL pointing to your tiles.

But first you'll need an image that's cut properly in the tile format. For starters, I'd recommend you look at MapTiler: http://www.maptiler.org/ It will cut images for you AND generate a GoogleMap with the overlay.

您需要查看Google地图API第3版的Google 叠加层 (尤其是自定义叠加层 )和自定义地图类型文档。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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