There is no TMS layer as yet in ol3. And there is a new e-mail list for ol3 questions: https://groups.google.com/forum/#!forum/ol3-dev
IIRC it has been asked there before, so search the archives. Best regards, Bart On 11 Nov 2013, at 09:21, SAILBOOK <c.marcus.scheff...@gmail.com> wrote: > 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. > _______________________________________________ > Users mailing list > us...@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users _______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users