Incorporation Ordnance Survey map into sheetsee.js plugin in Leaflet

不想你离开。 提交于 2020-01-16 20:18:11

问题


I would like to have the Ordnance Survey map shown in my Sheetsee.js map.

The example comes from this plugin:

https://github.com/jlord/hack-spots

I tried both OS API for leaflet

that has been more described here:

https://gis.stackexchange.com/questions/342571/incorporation-the-ordnance-survey-map-to-sheetsee-js-plugin-for-leaflet-mapbox?noredirect=1#comment559596_342571

and recently also with OS OpenSpace example, where I replaced:

       // create map, tilelayer (map background), markers and popups
       var map = Sheetsee.loadMap("map" {   
         zoom: 6,
        crs: L.OSOpenSpace.CRS,
        attributionControl: true
        })
        openspaceLayer = L.OSOpenSpace.tilelayer('EC9EDE7DAD732ABAE0430C6CA40AB812')
        Sheetsee.addTileLayer(map, openspacelayer 'jllord.n7aml2bc')

from

         // create map, tilelayer (map background), markers and popups
        var map = Sheetsee.loadMap("map")
        Sheetsee.addTileLayer(map, 'jllord.n7aml2bc')

Is it possible to have OS maps in this example provided?

来源:https://stackoverflow.com/questions/58992052/incorporation-ordnance-survey-map-into-sheetsee-js-plugin-in-leaflet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!