hzhu wrote:
> I downloaded the 1.5rc1 version and notice the cache issue has been
> addressed, but my acetate layer function is not working now.  I made this
> transparent GIf acetate layer to mark a cross on the map, and user can
> re-locate the cross by clicking the map, I forced the map to refresh to load
> new cross after clicking this way:
>
>  var scale = config.objects.mainMap.map.getScale() ;
>  config.objects.mainMap.map.zoomToScale(scale) ;
>
> This doesn't seem to work with 1.5rc1, and is there a way to just refresh
> this 1 image instead of the whole map?
>   

Yes. And on a much higher level than what you tried. You have to know 
the id/name of your layer (from the context document). Let's say your 
layer's name is "acetate", then you would do

config.objects.mainMap.setParam("refreshWmsLayers","acetate");

If you omit the second argument, all layers will be refreshed.

Regards,
Andreas.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to