[OpenLayers-Users] OpenLayers 3: Adding a TMS Layer

SAILBOOK c.marcus.scheffler at gmail.com
Mon Nov 11 00:21:35 PST 2013


Hi,

we are trying the new version of OpenLayers (3) for our development and came
across the problem of integration the seamark layer of OpenSeaMap into the
new Openlayers.

The original code was:
var layer_seamark = new OpenLayers.Layer.TMS ( "seamark",
"http://tiles.openseamap.org/seamark/", 
{ numZoomLevels: 18, type: 'png', getURL:getTileURL, isBaseLayer:false,
displayOutsideMaxExtent:true });
map.addLayer(layer_seamark);

But that doesn't work anymore. Does anybody have an idea of how it would
work now?



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/OpenLayers-3-Adding-a-TMS-Layer-tp5088471.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list