Add external geojson to leaflet layer

前端 未结 1 1516
栀梦
栀梦 2021-01-06 18:04

I am new to leaflet and JavaScript. I was thinking I could use geocommons and GeoJSON to host data for a mapping project.

I found External GeoJSON and Leaflet: The

1条回答
  •  囚心锁ツ
    2021-01-06 18:27

    Save the leaflet.ajax plugin as leaflet.ajax.min.js in the same folder as your html page, then call it by adding this line in between the tags

    
    

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