Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="en">
- <head>
- <title>Simple Leaflet example</title>
- <meta charset="utf-8">
- <meta name="viewport"content="width=device-width,initial-scale=1">
- <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
- <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
- <style>
- * {
- margin: 0;
- padding: 0;
- }
- #map {
- position: absolute;
- width: 100%;
- height: 100%;
- }
- .leaflet-container {
- background-color: #959190;
- }
- </style>
- </head>
- <body>
- </header>
- <div id="map"></div>
- <script>
- //var tileUrl = 'http://localhost:8080/geoserver/gwc/service/tms/1.0.0/test:test1@EPSG:4326@png/{z}/{x}/{y}.png',
- var wmsLayer = L.tileLayer.wms('http://localhost:8080/geoserver/ows?', {
- layers: 'test:test1'
- }),
- map = L.map('map', {
- center: new L.LatLng(32.9211,35.50538), crs: L.CRS.EPSG4326,
- maxZoom: 18
- });
- wmsLayer.addTo(map);
- //L.tileLayer(tileUrl, {tms: true}).addTo(map);
- map.setView([32.9211, 35.50538], 18);
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement