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
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to