[OpenLayers-Users] Why does OpenLayers.Layer.WMS shows vectors well
and OpenLayers.Layer.OSM does not? (Same code)
alexe100
imoveisnacionais at gmail.com
Tue Apr 24 20:29:39 EDT 2012
I
I have a web page that shows points features and one line in the map
If I use:
var layer = new OpenLayers.Layer.WMS( "OpenLayers
WMS","http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
map.addLayer(layer);
the vectors are well shown.
IF I use this instead:
var layer = new OpenLayers.Layer.OSM();
map.addLayer(layer);
only one point feature is shown on the map and the text font has bad
quality.
I have attached images for you to see the effect.
In the tests i only comment uncomment the next block of code. All the rest
source code remains unchanged.
...
//var layer = new OpenLayers.Layer.WMS( "OpenLayers
WMS","http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );
//map.addLayer(layer);
var layer = new OpenLayers.Layer.OSM();
map.addLayer(layer);
...
It seems that OpenLayers.Layer.OSM influences the appearance of the vector
on the screen
I need to use OpenLayers.Layer.OSM because it has more details than
OpenLayers.Layer.WMS but it disturns vectors.
Thanks a lot
Alex
http://osgeo-org.1560.n6.nabble.com/file/n4915184/osm.jpg
http://osgeo-org.1560.n6.nabble.com/file/n4915184/wms.jpg
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Why-does-OpenLayers-Layer-WMS-shows-vectors-well-and-OpenLayers-Layer-OSM-does-not-Same-code-tp4915184p4915184.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list