[Potlatch-dev] On GPX tracks in P2
Andy Allan
gravitystorm at gmail.com
Mon Dec 6 19:16:23 GMT 2010
On Mon, Dec 6, 2010 at 5:48 PM, NopMap <ekkehart at gmx.de> wrote:
>
>
> Andy Allan wrote:
>>
>>
>> I think you're missing what we're trying to explain. I'm assuming your
>> website supports sessions via cookies, or HTTP Basic auth, or some
>> other way - that would be needed to handle uploading GPX files to the
>> server in the first place. Given that then you can serve different
>> vectors.xml files to different people, in the same way that you serve
>> different html pages to different people. P2 requests its files via
>> the browser (that's how plugins work) so you would do something along
>> the lines of
>> * Get a request for vectors.xml
>>
>
> You are correct, I didn't see what you were trying to tell me. I think now I
> get it. P2 makes an URL request to its own server instead of a file system
> access - catch it and provide whatever content I need.
>
> At what time does P2 make requests for the vectors.xml? Is that the myGPX
> list?
The vectors.xml, imagery.xml and stylesheets.xml files are all
requested at initialisation, so you could (if you had a need) provide
custom per-user versions of any of them.
The myGPX dialog (which is practically unfindable now) talks only to
the same OSM server that's configured in the "api" variable, since
it's using OSM API calls to access the tracks that have already been
uploaded to the API server.
Cheers,
Andy
More information about the Potlatch-dev
mailing list