[OpenLayers-Users] how to use third party image tiles as a base layer

MichaelBP mbp at byggeweb.dk
Mon Jul 9 04:00:14 PDT 2012


I have tried to use MagickTiler and MapTiler to generate tiles from a large
png.
They will result in a folder hierarchy containing all the tiles.
The folder hierarchy should be in your servers htdocs or another outside
accessible place.
I then do something like this:

var layer = new OpenLayers.Layer.TMS(
					"TMS Layer", "//myserveraddress/mygeneratedtiles",
		            { layername: ".", serviceVersion: ".", transitionEffect:
"resize", type:"png" }
				);
		        map.addLayer(layer);




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/how-to-use-third-party-image-tiles-as-a-base-layer-tp4521493p4986907.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list