From: fatzopilot <fat...@gm...> - 2011-01-24 22:15:53
|
Hi, I've searched and tried a lot but could not find a satisfying answer for this. Most of the time, examples are for openlayer (sans gwt-) only, e.g. something like var newLayer = new OpenLayers.Layer.OSM("New Layer", "URL_TO_TILES/${z}/${x}/${y}.png", {numZoomLevels: 19}); map.addLayer(newLayer); There does not seem to be a constructor in the GWT Version allowing a custom URL, i.e. there is no OSM osmLayer = OSM("Main", "path to server/${z}/${x}/${y}") constructor or similar. I also tried the XYZ slippy map, but this only shows the northern hemisphere, albeit the server is able to deliver tiles for the southern hemisphere as well. But maybe this is just a configuration thing. What would be the recommended way? Thanks |