[ka-Map-users] addObjectGeo error
Brent Pedersen
bpederse at gmail.com
Thu Jan 19 12:36:46 EST 2006
that code will get executed after var myKaMap is declared in startUp.js
but before myKaMap is set to a new instance of kaMap--before it has any
properties.
just move that code into the end of myOnLoad() or into myInitialized() in
startUp.js.
then you wont get that error, but you've still to reproject your coords.
On 1/18/06, harry at politistaten.dk <harry at politistaten.dk> wrote:
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20060119/c0cd800a/attachment.html
More information about the ka-Map-users
mailing list