Hello.
Is there any possibility to use map layers OSM?
On the map it can be used with the code :
Code
function to_osm() {
map.addOverlay(TileLayerOverlay);
}
TileLayerOverlay = new GTileLayerOverlay(
new GTileLayer(null, null, null, {
tileUrlTemplate: "http://tile.openstreetmap.org/{Z}/{X}/{Y}.png",
isPng:true,
opacity:1.00}
)
);
TileLayerOverlay.getTileLayer().getOpacity = function() { return this.opacity; }
TileLayerOverlay.getTileLayer().opacity=1.0
map.addOverlay(TileLayerOverlay);
map.addControl(new OpacityControl( TileLayerOverlay ));
Alles anzeigen