[OpenLayers-Users] Create a layer with multiple GPX source
snowsar
snowsar at yahoo.fr
Thu Aug 2 08:40:01 PDT 2012
Hello everyone,
Currently, I have an application loading a GPX file into a layer :
MyLayer = new OpenLayers.Layer.Vector("GPX", {
protocol: new OpenLayers.Protocol.HTTP({
url: "my_remote_gpx_file.gpx",
format: new OpenLayers.Format.GPX()
}),
strategies: [new OpenLayers.Strategy.Fixed()],
styleMap : BuildStyleMap("#9A03FE"),
projection : localProjection
});
map.addLayer(MyLayer );
All is OK with this.
I want now to be able to build a unique layer with several GPX files.
What is the best way to do this ?
Should I inheritate OpenLayers.Protocol.HTTP to permits string array in
"url" and use internally OpenLayers.Protocol.HTTP for each one ?
Thank you for your advices.
Regards
More information about the Users
mailing list