I can't find any tutorials or tips.
I've currently got url form local map provider: http://map.map-site.com/wms/alus?VERSION=1.1.1&REQUEST=GetCapabilities&SERVICE=WMS
Also that xml WMS file on hard drive (downloaded it when I went this url).
My map code (I call it somewhere else):
var map;var ajaxRequest;var plotlist;var plotlayers=[];function initmap() {//Set up the map map = new L.Map('map'); //Create the tile layer with correct attribution var osmUrl='http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; var osmAttrib='Map data © OpenStreetMap contributors'; var osm = new L.TileLayer(osmUrl, {minZoom: 8, maxZoom: 12, attribution: osmAttrib}); //Starting spot map.setView(new L.LatLng(0, 0),9); map.addLayer(osm);}I also have Leaflet added. I tried it with openstreetmap.org and it worked but now..
أكثر...
I've currently got url form local map provider: http://map.map-site.com/wms/alus?VERSION=1.1.1&REQUEST=GetCapabilities&SERVICE=WMS
Also that xml WMS file on hard drive (downloaded it when I went this url).
My map code (I call it somewhere else):
var map;var ajaxRequest;var plotlist;var plotlayers=[];function initmap() {//Set up the map map = new L.Map('map'); //Create the tile layer with correct attribution var osmUrl='http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; var osmAttrib='Map data © OpenStreetMap contributors'; var osm = new L.TileLayer(osmUrl, {minZoom: 8, maxZoom: 12, attribution: osmAttrib}); //Starting spot map.setView(new L.LatLng(0, 0),9); map.addLayer(osm);}I also have Leaflet added. I tried it with openstreetmap.org and it worked but now..
- How to add my local map providers layer?
- If I have a choice, should I use TMS, WMS-C, WMTS or WMS? Are they very different to add? What's their difference? What would suit me?
أكثر...