Created
December 15, 2016 20:16
-
-
Save miguelius/57d76f8965b3f106e49d7fb5da8a3d62 to your computer and use it in GitHub Desktop.
Leaflet wms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>WMS example - Leaflet</title> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" /> | |
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.2/dist/leaflet.css" /> | |
<script src="https://unpkg.com/leaflet@1.0.2/dist/leaflet.js"></script> | |
<style> | |
#map { | |
width: 600px; | |
height: 400px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id='map'></div> | |
<script type="text/javascript"> | |
var map = L.map('map', { | |
center: [-47, -67], | |
zoom: 3 | |
}); | |
var wmsLayer = L.tileLayer.wms('https://ide.ign.gob.ar/geoservicios/services/Mapas_IGN/mapa_mudo/MapServer/WMSServer?', { | |
layers: '2,3,4,5,6,7,8,9,10,11,12,13,16,17,18,20,23,25,26,27,28,30,31,32,33,34', | |
attribution: 'Gentileza del <a href="http://www.ign.gob.ar">Instituto Geografico Nacional</a>' | |
}).addTo(map); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment