Convert a single large image overlay to tiles for Google Maps

前端 未结 3 1315
遇见更好的自我
遇见更好的自我 2021-01-31 05:58

I have a large high-resolution image that I am using for an overlay using Google Maps v3 API. This works fine for desktop and laptop computers with a reasonable network connect

3条回答
  •  广开言路
    2021-01-31 06:35

    you can check MapTiler http://code.google.com/p/maptiler/. It can generate the tiles you need.

    Tile server is really easy to write. The easiest way is just to host static files (your tiles) in a directory structure. The directory structure is then usually servername/zoom/x/y.png (or zoom/y/x.png). Such structure is also produced by MapTiler. MapTiler also generates an example web page using the tiles (but I guess it uses Google Maps API v2).

    Information about using your tiles in Google Maps API v3 can be found here: http://code.google.com/apis/maps/documentation/javascript/maptypes.html#CustomMapTypese

提交回复
热议问题