PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Strange thing happening to markers. (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Strange thing happening to markers.


#5503
irishnet (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Strange thing happening to markers. 9 Months ago Karma: 0  
Hello, new to your plugin, so far it is amazing great work.

I have set up a map with 3 markers at first I though they were not showing but if you place the kml file url into google maps it shows them not over Ireland where they should be but off the coast of Africa :-)

I used the lat and long from google maps but it appears they are been reversed. So 53.2941570, -6.4720290 becomes in google maps -6.4720290, 53.2941570

which you can see if you submit http://slaine.ie.gridhosted.co.uk/dev/kml_sample1.kml into google maps but in the kml file it is listed as follows:

<Point>
<coordinates>53.2941570, -6.4720290, 0</coordinates>
</Point>

Would have idea what I am doing wrong here?

Thanks for any help you can give
 
  The administrator has disabled public write access.

#5504
kksou (Admin)
Admin
Posts: 1676
graph
User Online Now Click here to see the profile of this user
Re:Strange thing happening to markers. 9 Months ago Karma: 27  
Hi,

You're not doing anything wrong. It's just that google maps and KML specify the location different.

For google maps, it specifies the latitude first followed by longitude.

For KML, if you take a look at the KML Reference - Point, each point is specified as longitude, latitude, and optional altitude.

So the two are reversed.

Regards,
/kksou

p.s. There's also a pretty good KML tutorial here: KML Tutorial
 
 
Last Edit: 2012/08/20 01:32 By kksou.
  The administrator has disabled public write access.

#5505
irishnet (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Strange thing happening to markers. 9 Months ago Karma: 0  
Hey thank you for the fast reply, All sorted now and thanks for the link very helpful..
 
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Links - Classes - Social Business - BPM - Web - General
Copyright © 2006-2013. kksou.com. All Rights Reserved