[OpenLayers-Dev] 100% javascript client side OpanLayers
stephane.ris
stephane.ris at gmail.com
Tue Apr 26 08:47:49 EDT 2011
Hello,
I'm trying to buid a 100% client side javascript app with no interactions
with the outside and no web server.
I saw in the openLayer javascript API that it's possible to load a remote
OSM file by its URL:
var layer = new OpenLayers.Layer.Vector("Polygon", {
strategies: [new OpenLayers.Strategy.Fixed()],
protocol: new OpenLayers.Protocol.HTTP({
url: "myosmfile.osm", //<-- relative or absolute
URL to your .osm file
format: new OpenLayers.Format.OSM()
}),
projection: new OpenLayers.Projection("EPSG:4326")
});
Do you know if there is any way to load that same OSM file direclty from the
local filesystem using maybe the HTML5 Read/Write file API or the HTML5
embeded database in the browser.
Thanks a lot,
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/100-javascript-client-side-OpanLayers-tp6305582p6305582.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.
More information about the Dev
mailing list