Custom Google Map overlay?

后端 未结 2 1106
野趣味
野趣味 2020-12-29 15:30

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 w

相关标签:
2条回答
  • 2020-12-29 16:28

    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.

    0 讨论(0)
  • 2020-12-29 16:28

    You'll want to look at Google's Overlays (especially Custom Overlays) and Custom Map Types documentation for Version 3 of their Maps API.

    0 讨论(0)
提交回复
热议问题