Zugang: Karteneinstieg: Unterschied zwischen den Versionen
		
		
		
		
		
		Zur Navigation springen
		Zur Suche springen
		
				
		
		
	
| Zeile 36: | Zeile 36: | ||
|      var zoom = 12; |      var zoom = 12; | ||
|      map.setCenter(lonLat, zoom); |      map.setCenter(lonLat, zoom); | ||
| + | |||
| + | var map; | ||
| + | function init() { | ||
| + |     var mapOptions = { | ||
| + |         projection: new OpenLayers.Projection('EPSG:3857'), | ||
| + |         maxResolution: 78271.516964, | ||
| + |         units: 'm', | ||
| + |         numZoomLevels: 19, | ||
| + |         maxExtent: new OpenLayers.Bounds(-20037508.3428, -20037508.3428, 20037508.3428, 20037508.3428) | ||
| + |     }; | ||
| + | |||
| + |     map = new OpenLayers.Map('map', mapOptions); | ||
| + | |||
| + |     var layer = new OpenLayers.Layer.XYZ( | ||
| + |         'ORKa.MV', | ||
| + |         'http://www.orka-mv.de/geodienste/orkamv/tiles/1.0.0/' | ||
| + |       + 'orkamv/GLOBAL_WEBMERCATOR/${z}/${x}/${y}.png, { | ||
| + |             sphericalMercator: true, | ||
| + |             wrapDateLine: true | ||
| + |         } | ||
| + |     ); | ||
| + | |||
| + |     map.addLayer(layer); | ||
| + |     map.zoomToExtent(new OpenLayers.Bounds(1150978.94, 6980299.78, 1636564.19, 7327346.85)); | ||
| + | } | ||
| + | init(); | ||
| </script> | </script> | ||
| </html> | </html> | ||
Version vom 15. November 2016, 14:03 Uhr