Convert a single large image overlay to tiles for Google Maps

前端 未结 3 1340
遇见更好的自我
遇见更好的自我 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:16

    You can do the entire thing clientside without tile pre-cutting

    See https://github.com/Murtnowski/GMap-JSlicer

    slicer = new JSlicer(document.getElementById('map'), 'myImage.png');
    slicer.init();
    

    Very simple.

提交回复
热议问题