[ka-Map-users] addObjectGeo error

Delfos, Jacob jacob.delfos at maunsell.com
Wed Jan 18 22:38:12 EST 2006


Harry,

Regarding your coordinates, you can not just concatenate them. You'd have to convert them to your coordinate system. If your map is in latlong (decimal latlong), then it's not too hard:

Degrees decimal = Degrees + minutes/60 + seconds/3600

So:
10°06'13.92"N = 10 + (6/60) + (13.92/3600) = 10.1038666
56°44'21.66"E = 56 + (44/60) + (21.66/3600) = 56.73935

Regards,

Jacob


 

» -----Original Message-----
» From: ka-map-users-bounces at lists.maptools.org 
» [mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of 
» harry at politistaten.dk
» Sent: 19 January 2006 08:33
» To: ka-map-users at lists.maptools.org
» Subject: [ka-Map-users] addObjectGeo error
» 
» Hello again
» 
» I've got this in my ka-Map HTML file:
» 
» 123 <script type="text/javascript">
» 124	var canvas = myKaMap.createDrawingCanvas( 5000 ); //zindex=500
» 125	var img = document.createElement( 'img' );
» 126	img.src = 'images/valid-html401.png';
» 127	myKaMap.addObjectGeo( canvas, 10061392, 56442166, img );
» 128 </script
» 
» But Firefox Javascript-console gives me this error:
» 
» Error: myKaMap has no properties
» Line: 124
» 
» Also, i am not sure my lat/lon are right, what is the format, if the
» coordinate is 10°06'13.92"N 56°44'21.66"E ?
» 
» _______________________________________________
» ka-Map-users mailing list
» ka-Map-users at lists.maptools.org
» http://lists.maptools.org/mailman/listinfo/ka-map-users
» 



More information about the ka-Map-users mailing list