Hi All OpenLayer Users and Christopher, I have seen your post on OpenLayer discussion regarding Tile Server, I am also trying to add "Spherical Mercator" layer to the LAS.
can you tell me, How to display/add our tiles using openlayers. default tile server image is below, URL is-http://labs.metacarta.com/wms/vmap0 [image: vmap0_002.png] please,If you could point me to a tutorial that shows step by step what we are suppose to do, I can't figure out Where and How to do the start ? Some code snippet of LASOpenLayers.js file is below, /* INIT OPENLAYERS MAP */ mapoptions0 = { maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90), restrictedExtent: new OpenLayers.Bounds(-180, -90, 180, 90) }; mapoptions180 = { maxExtent: new OpenLayers.Bounds(-400, -90, 400, 90), restrictedExtent: new OpenLayers.Bounds(-400, -90, 400, 90) }; this.map = new OpenLayers.Map(this.DOMNode.id, mapoptions0); this.map.MW = this; /* add the layers */ var wmsLayer = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'}, {wrapDateLine: true, isBaseLayer:false}); var vector = new OpenLayers.Layer.Vector("Vector Layer",{ rendererOptions : {extent : new OpenLayers.Bounds (-180, -90, 360, 90)}}); var base = new OpenLayers.Layer.Vector("Base Layer",{ isBaseLayer:true,rendererOptions : {extent : new OpenLayers.Bounds(-180, -90, 360, 90)}}); this.map.addLayers([base, wmsLayer, vector]); this.map.addControl(new OpenLayers.Control.MousePosition()); //* Some Control code is here */ I want to add below Tile Server layer in to the LAS. // create Virtual Earth layers var veroad = new OpenLayers.Layer.VirtualEarth("Virtual Earth Roads", {'type': VEMapStyle.Road, 'sphericalMercator': true}); So can anybody guide me..... Trying to hard but could not find the solution... awaiting for reply.... ------------ Warm Regards, Sandeep Ingle
<<vmap0_002.png>>
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
