On Feb 5, 12:49 pm, gpsguido <[email protected]> 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
