draw path in OpenStreetMap - openstreetmap

I have a GPX file with me. I need to draw a root map using this GPX file with selected points(as stops) OpenStreetMap.
What kind of steps I need to take.
Please help me.
Sample code in GPX file is given below
<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.0">
<name>Example gpx</name>
<wpt lat="46.57638889" lon="8.89263889">
<ele>2372</ele>
<name>LAGORETICO</name>
</wpt>
<trk><name>Example gpx</name><number>1</number><trkseg>
<trkpt lat="46.57608333" lon="8.89241667"><ele>2376</ele><time>2007-10-14T10:09:57Z</time></trkpt>
<trkpt lat="46.57619444" lon="8.89252778"><ele>2375</ele><time>2007-10-14T10:10:52Z</time></trkpt>
<trkpt lat="46.57641667" lon="8.89266667"><ele>2372</ele><time>2007-10-14T10:12:39Z</time></trkpt>
<trkpt lat="46.57650000" lon="8.89280556"><ele>2373</ele><time>2007-10-14T10:13:12Z</time></trkpt>
<trkpt lat="46.57638889" lon="8.89302778"><ele>2374</ele><time>2007-10-14T10:13:20Z</time></trkpt>
<trkpt lat="46.57652778" lon="8.89322222"><ele>2375</ele><time>2007-10-14T10:13:48Z</time></trkpt>
<trkpt lat="46.57661111" lon="8.89344444"><ele>2376</ele><time>2007-10-14T10:14:08Z</time></trkpt>
</trkseg></trk>
</gpx>

Your question really lacks a lot of information but I assume you want to display your GPX file in a browser.
For just uploading your GPX file on a website which uses OSM as the underlying map: See track drawing websites in the OSM wiki.
For displaying your GPX file on your own server or your local computer: Choose a JavaScript API, for example Leaflet or OpenLayers. Then just import your GPX file, the Internet has numerous examples.

Related

how to refresh a page of full data population automatically

I have a list of data which are been read from an xml file(in dam) in a component and suppose get populated in the entire page. As soon as I read the file in the component, it refreshes the page due to editConfig setting, however, in order see the full data the page(read from xml), I have to do a manual refresh again in the browser.
Is there a way to automate the entire process such that manual refresh can be done away with.
Here is the editConfig setting:
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
cq:dialogMode="floating"
cq:disableTargeting="{Boolean}true"
jcr:primaryType="cq:EditConfig">
<cq:listeners
jcr:primaryType="cq:EditListenersConfig"
afteredit="REFRESH_PAGE"/>
I think this might be an useful solution for your problem.
https://adobe-consulting-services.github.io/acs-aem-tools/features/live-reload.html

How to merge two prototypes in Pencil Wireframing Tool?

I am using Pencil wire framing tool. I have distributed the modules with my developers and now I want to merge all of them in a single solution. Instead of copy pasting page by page I think there can be a better way of doing this.
Also I wanted to know, is it possible of converting the one source file of prototype into another as I think collaboration feature in Pencil is missing.
Please assist.
Thank you
Open .ep files in your favorite editor. You will see an XML structure like
<?xml version="1.0"?>
<Document xmlns="http://www.evolus.vn/Namespace/Pencil">
<Properties/>
<Pages>
<page>...</page>
<page>...</page>
.....
.....
</Pages>
</Document>
Now just copy paste second .ep files all <page> at end of first .ep (Just before </pages>

App crashing when trying to create a TBXML object with this xml

I am trying to parse following xml using tbxml library -
<?xml version="1.0" encoding="UTF-8"?>
<REPLY replyCode="Success" >
<TRACK track_id="1302234" track_mp3="74-Ruff_Ryders_feat_Sheek_Louch_and_Big_Pun_-_Piña_Colada.mp3"></TRACK>
</REPLY>
But when I tried to create TBXML object the app is crashing I think this is because of some special chars in xml file (Piña).
Any idea on this?
Latest version 1.4 resolved this problem!!

how to pen Iphone .plist file in Windows Machine?

In my Iphone application i have .plist file in which i am putting all the Input data. I will further use this data in the code: directly from .plist file.
The problem is that when i am going to open the .plist file in a windows machine, it is not showing its original content. It is just showing the Binary characters or junk characters.
Can any body help me out for how to open the .plist file in the Windows machine, so i can do my data entry in the .plist file in a windows machine also.
Any solution would be appreciated.
More likely than not, the plist is stored in a binary format for speed and size purposes (XML is bloated and slow to parse).
You'll need to explicitly save your data in a readable format manually or use NSPropertyListSerialization to serialize the property list into XML.
http://developer.apple.com/iphone/library/documentation/cocoa/Reference/Foundation/Classes/NSPropertyListSerialization_Class/Reference/Reference.html#//apple_ref/occ/clm/NSPropertyListSerialization/dataFromPropertyList:format:errorDescription:
Probably it's to late.
You can use xml editor,but not all of them can work with *.plist files. I use http://www.donkeydevelopment.com
PS
Apple use this document type definition:
< DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

How do you package clickable url's with your application?

I asked a similar question a while ago but didn't get a satisfactory answer, so I was wondering if there was a different approach a guy could take.
What is the format for making a web link that you can deploy with your application? One that might show up in the start menu as a link to said app vendor's website.
It should work in any modern OS and with any reasonably modern browser (i.e. >= IE6, although I'm not sure that's a relevant issue)
There is no cross-platform way to do this.
Freedesktop-compliant systems can use xdg-open
Mac users can use open
Debian derivatives can use sensible-browser (or install xdg-open, usually)
Windows users can use *.url files
Or, of course, you could implement xdg-open and package it with your app on systems that don't have it
Or implement your own util that's completely different and associate it with the right files
The format is different on different platforms.
On Windows, you can use a .url file. Here's a description of the format. You can also create one by just dragging a URL onto the desktop or into a folder. A simple example:
[InternetShortcut]
URL=http://stackoverflow.com/
On the Mac, you can also create a URL file by dragging a URL to the desktop. The format appears to be a file with a .webloc extension, containing a plist containing a dict, mapping the key URL to the URL in question:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>URL</key>
<string>http://stackoverflow.com/</string>
</dict>
</plist>