[ka-Map-users] Newbie question about kaXMLOverlay
Pg
pg.navone at gmail.com
Thu Nov 16 15:53:04 EST 2006
Some others hints:
1. be sure the map is fully initialized before calling the addPoint function
(e.g wait the INITIALIZED event)
2. if you use an absolute URL (http:// localhost/...) the icon will get
loaded only if the browser is on the same machine of the server (this is an
obvious consideration, but it's better to remind once more than once less
:-)
3. to help the debug look for request for point.gif in the server access
logs
4. In the current version the icons are displayed with the vector graphics
engine (canvas in Firefox and VML in Explorer. Try changing this default
behaviour with
xmlOverlayUseCanvas = false;
before initializing the overlay layer.
Last: read http://ka-map.ominiverdi.org/wiki/index.php/Overlay_API_Reference
Bye
-Pg
2006/11/13, linh dang hong <linh_2f at yahoo.com>:
>
> I installed MapServer, PostGis, Ka-Map, and all of them worked properly
> and displayed map successfull. But when i try to add one point over map, i
> don't see any thing display on it
> My code
> function addPoint(pid,x,y,iconsrc){
> var point = myKaXML.addNewPoint(pid, x, y);
> var icon = new kaXmlIcon();
> pointIdList[pointNumber]= pid;
> pointNumber ++;
> // for test only
> icon.icon_src = http://localhost/images/point.gif';
> icon.icon_w= 100;
> icon.icon_h= 100;
> // point.onMouseOver = onPoinClick();
> point.addGraphic(icon);
> }
>
> I tried using Firebug to find out what 's cause this problem but i
> couldn't.
> Please explain to me why nothing display on map. Thank anyways
>
> ------------------------------
> Access over 1 million songs - Yahoo! Music Unlimited.
> <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/>
>
>
> _______________________________________________
> 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/20061116/8de65f2f/attachment.html
More information about the ka-Map-users
mailing list