[Talk-de] OpenLayers offline programmieren
Sven Geggus
lists at fuchsschwanzdomain.de
So Nov 14 12:35:12 UTC 2010
fx99 <fx99 at vollbio.de> wrote:
> Wenn Du auch OpenStreetMap.js lokal abspeicherst, da den Tile Pfad änderst
> (hier lokales Verzeichnis map)
>
> // var url = [
> // "http://a.tile.openstreetmap.org/${z}/${x}/${y}.png",
> // "http://b.tile.openstreetmap.org/${z}/${x}/${y}.png",
> // "http://c.tile.openstreetmap.org/${z}/${x}/${y}.png"
> // ];
> var url = [
> "map/${z}/${x}/${y}.png",
> "map/${z}/${x}/${y}.png",
> "map/${z}/${x}/${y}.png"
> ];
>
> und da Deine Tiles reinlegst, dann geht das alles ohne IN.
Alternativ auch mit absoluten Pfad:
file:///path/to/map/${z}/${x}/${y}.png
Gruss
Sven
--
"and on the third day he rebooted into Linux-1.3.84"
(Linus Torvalds, Easter Kernel Release 1996)
/me is giggls at ircnet, http://sven.gegg.us/ on the Web
Mehr Informationen über die Mailingliste Talk-de