[Trac] [OpenLayers] #364: WMS untiled does not work anymore?
OpenLayers
trac at openlayers.org
Fri Oct 20 15:17:23 EDT 2006
#364: WMS untiled does not work anymore?
------------------------+---------------------------------------------------
Reporter: openlayers | Owner:
Type: feature | Status: new
Priority: critical | Milestone: 2.2 Release
Component: general | Version:
Keywords: |
------------------------+---------------------------------------------------
This used to work with 2.1, but not with 2.2, no map is loaded at all:
function mapinit(){
map = new OpenLayers.Map( $('map'), { 'projection':
'EPSG:4326', 'units':'degrees', 'maxExtent': new OpenLayers.Bounds(-180,
-90, 180, 90) , 'maxResolution':'auto'}); var layer = new
OpenLayers.Layer.WMS.Untiled( "WorldGen",
"http://www2.dmsolutions.ca/cgi-bin/mswms_world?",
{layers: 'WorldGen', 'format':'image/png', 'transparent':'true'} );
layer.isBaseLayer = true;
map.addLayers([layer]); var layer = new
OpenLayers.Layer.WMS.Untiled( "World Political",
"http://www2.dmsolutions.ca/cgi-bin/mswms_world?",
{layers: 'WorldPolitical', 'format':'image/png', 'transparent':'true'} );
layer.isBaseLayer = false;
map.addLayers([layer]); var layer = new
OpenLayers.Layer.WMS.Untiled( "WorldGen_Outline",
"http://www2.dmsolutions.ca/cgi-bin/mswms_world?",
{layers: 'WorldGen_Outline', 'format':'image/png', 'transparent':'true'}
);
layer.isBaseLayer = false;
map.addLayers([layer]); var layer = new
OpenLayers.Layer.WMS.Untiled( "WorldRoads",
"http://www2.dmsolutions.ca/cgi-bin/mswms_world?",
{layers: 'WorldRoads', 'format':'image/png', 'transparent':'true'} );
layer.isBaseLayer = false;
map.addLayers([layer]); var layer = new
OpenLayers.Layer.WMS.Untiled( "WorldPlaces",
"http://www2.dmsolutions.ca/cgi-bin/mswms_world?",
{layers: 'WorldPlaces', 'format':'image/png', 'transparent':'true'} );
layer.isBaseLayer = false;
map.addLayers([layer]); var layer = new
OpenLayers.Layer.WMS.Untiled( "WorldPOI",
"http://www2.dmsolutions.ca/cgi-bin/mswms_world?",
{layers: 'WorldPOI', 'format':'image/png', 'transparent':'true'} );
layer.isBaseLayer = false;
map.addLayers([layer]); map.addControl(new
OpenLayers.Control.LayerSwitcher());
map.zoomToMaxExtent();
}
--
Ticket URL: <http://trac.openlayers.org/ticket/364>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list