[Users] How to update scale combobox?

Pierre Giraud pierre.giraud at camptocamp.com
Tue Apr 21 09:48:52 CEST 2009


Hi Myeonghun,

(Forwarded to the MapFish users list as it is more a MapFish related
question.)

Maybe, you could listen to events that tells that the map is updated and set
the scale combo value to the current map scale :

map.events.on({
    'moveend': function() {
        combo.setValue(map.getScale());
    }
});

This has not been tested.

Regards,
Pierre



On Tue, Apr 21, 2009 at 9:33 AM, Myeong Hun Jeong <mhjeong74 at gmail.com>wrote:

> Dear list.
>
> I downloaded ComboBoxFactory.js from http://geoext.blogspot.com/
> I tested  it. so the map is zoom to scale when a value is chosen in the
> scale combobox.
> However, what I want is that how to update the value of scale combobox when
> the map is updated?
> Please, give me a piece of information.
>
> Sincerely yours,
> Myeonghun Jeong.
>
>
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20090421/ea52e22e/attachment.htm 


More information about the Users mailing list