Saturday, February 5, 2011

[Google Maps API v2] Re: using php for output xml markers and lines.

On Feb 5, 12:49 pm, gpsguido <webmas...@gps-info.nl> wrote:
> I did decide to make the polyline/ markers in a new map. (just when we are
> on the move)
>
> Idea is still the same.
> I want to use a php code to create a xml file like :http://econym.org.uk/gmap/example4.xml
>
> The points are quit oké. But how to create the <line> <point ... using the
> php file.

If you want to use Mike's routines, you need to create xml that looks
like this:
- <line colour="#008800" width="8" html="You clicked the green
polyline">
<point lat="43.9078" lng="-79.0264" />
<point lat="44.1037" lng="-79.6294" />
<point lat="43.5908" lng="-79.2567" />
<point lat="44.2248" lng="-79.2567" />
<point lat="43.7119" lng="-79.6294" />
<point lat="43.9078" lng="-79.0264" />
</line>

Another option would to be encode the polylines, and store the encoded
string. That is all up to you. I have examples that create encoded
polylines from xml:
http://www.geocodezip.com/GenericMapBrowser.asp?filename=I5Polyline_encoded.xml

-- Larry

> I use following php code.
>
> Somehow $node = $dom->createElement("line");  needs to be inserted.
>
> Thanks for helping out.
> Xml:http://www.finnschmidt.nl/gen_xml2.php?regio=aare2
> map:http://www.finnschmidt.nl/reis/aare/map/index2.php
>

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate