I probably did not pay enough time to think about it, but the simplest way to clear the "canvas", is to have something like following and call it when the new map is loaded (withou any page reload):

function clearMap() {
 mainmap.getDisplay('map').currentLayer.innerHTML = '';
}

Note that it has not been tested.

Besides, we, at camptocamp, have also been working on an Ajax implementation. We're interested in such developpements if you are about to share.

Regards.

Pierre GIRAUD


Bruno Maluche Neto a écrit :

Hello... I´m doing some changes in Cartoweb... I added Ajax to eliminate submit... So I dont need to createMap() each map´s iteration... The problem is each zoomin, zoomout or pan add a cursor on screen (cross or a box) and I need to clean up it... How can I do that without use createMap() ??? Thank you

------------------------------------------------------------------------

_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users


--
_________________________________________________________
Pierre GIRAUD
Géomaticien, Analyste

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 93
Mail : [EMAIL PROTECTED]
http://www.camptocamp.com

_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users

Reply via email to