mercoledì, maggio 28, 2008

Zoom url for virtual earth map #2

In the previous post I showed a method to get the cp parameter.

If you are familiar with xml (a very basic knowledge is needed!), another way you can use is to export your collection as KML or GPX.

To do this open the collection dialog clicking on "Collections->Open your collections"

In the Actions menu choose export.

If you choose KML you'll get an XML file.

For a pushpin you'll have this node

<Point>
        <coordinates>10.018243789672851,46.18779330741286</coordinates>
</Point>

Watch out that the first value is the Longitude and the second is the Latitude. You'll have to swap the values and replace comma with tilde

cp=46.18779330741286~10.018243789672851

For GPX you'll also get an xml file. For the pushpin the format is

<wpt lat="46.18779330741286" lon="10.018243789672851">

create the cp parameter using lat attribute first and lon attribute last separated by a tilde.

Nessun commento: