[OpenLayers-Users] Re: OpenStreetMap: wrong tile http address

rscxdev rscxdev at gmx.de
Wed Jan 18 16:25:09 EST 2012


I want to add some code; to initialize the map is use

geoMap = new OpenLayers.Map(geoMapID, {
				controls: [
					new OpenLayers.Control.KeyboardDefaults(),
					new OpenLayers.Control.Navigation(),
					new OpenLayers.Control.LayerSwitcher(),
					new OpenLayers.Control.PanZoomBar(),
					new OpenLayers.Control.MousePosition(),
					new OpenLayers.Control.ScaleLine( {
						geodesic : true
					}),
					new OpenLayers.Control.Attribution()],
				restrictedExtent: maxBounds,
				maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34,
20037508.34, 20037508.34),
				numZoomLevels: 18,
				maxResolution: 156543.0339,
				units: 'm',
				projection: projMerc,
				displayProjection: proj4326
			});



--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/OpenStreetMap-wrong-tile-http-address-tp7201670p7201689.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list