Hi, given my local server can run ASP (JSP) code, and also I have embed
openstreetmap in my web mashup, so I can get the bounds of current
Openstreetmap view, just like (0,51.5,0.25,51.75). Based on this, how can I
get the corresponding OSM XML data Programatically in my web mashup? That is to
say, I want to get the XML map data using ASP or JSP code in webpage. Any
specific advice is of great help for me.
Thank you so much.
Best regards and wishes
Xintao
--------------------------------------------------
From: "Stefan Breunig" <[email protected]>
Sent: Tuesday, February 24, 2009 2:57 AM
To: "xintao" <[email protected]>
Cc: <[email protected]>
Subject: Re: [OSM-dev] How to download the map data Programatically?
> You can parse XML files using the browser's integrated XML parser, see
> [1]. However, due to security reasons you can't do this across domains
> �C you'll have to save the XML file to your server either manually or
> via server side processing (e.g. C++, PHP or whatever programming
> language your server has to offer). [1] also notes this. Flash can
> probably work cross-domain, but I'm not sure about that and I don't
> know if it's even possible to transfer the data from Flash to HTML
> DOM/JS, but if you don't have server side programming support it's
> probably your only chance.
>
> Greetings
> xeen
>
> [1] http://www.w3schools.com/Xml/xml_parser.asp
>
> On Tue, Feb 24, 2009 at 02:34, xintao <[email protected]> wrote:
>> Dear all,
>>
>> Hi, we know we can access the OSM data using this method:
>> http://api.openstreetmap.org/api/0.5/trackpoints?bbox=0,51.5,0.25,51.75.
>> My question is, if I want to use Javascript code to save this file
>> Programatically in my web page, how can I do it?
>>
>> Second, when I make a web mashup, e.g.
>> http://www.hig.se/~xioliu/openstreetmap.html, how can I add a rigth-click
>> menu, rather than the right-click menu of the Brower?
>>
>> Any of your comments and advice are highly appreciated and anticipated.
>> Many
>> thanks in advance.
>>
>> Yours sincerely
>>
>> Xintao
>>
>> _______________________________________________
>> dev mailing list
>> [email protected]
>> http://lists.openstreetmap.org/listinfo/dev
>>
>>
>
>
>
> --
> Please encrypt your mail:
> http://mathphys.fsk.uni-heidelberg.de/~stefan/publickey.asc
> FP: 2620 E737 FD50 60AB 86B6 1B9D 3BFD AFFB 5B15 6893
>
_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev