[Cartoweb-users] Clean up mapframe...

Bruno Maluche Neto maluche at labtrans.ufsc.br
Fri Nov 25 08:36:51 EST 2005


Thank you Pierre... That works great :)
About Ajax, I´m using .NET C#...
I took off : myform.submit(); of doSubmit()
And a added a new js function that call a server method throw Ajax...
If you need anything you can ask...

Thanks

----- Original Message ----- 
From: "Pierre GIRAUD" <pierre.giraud at camptocamp.com>
To: "Bruno Maluche Neto" <maluche at labtrans.ufsc.br>
Cc: <cartoweb-users at lists.maptools.org>
Sent: Friday, November 25, 2005 10:49 AM
Subject: Re: [Cartoweb-users] Clean up mapframe...


>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
>>Cartoweb-users at lists.maptools.org
>>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 : pierre.giraud at camptocamp.com
> http://www.camptocamp.com
> 



More information about the Cartoweb-users mailing list