[Users] custom text for ZoomSliderTip
Moen Endre
endre.moen at imr.no
Tue Feb 17 15:46:59 CET 2015
I have a definition of a zoomslider like this:
xtype: "gx_zoomslider",
vertical: true,
height: 100,
plugins: new GeoExt.ZoomSliderTip({
template: "<div>Zoom level: {zoom}</div><div>resolution:{resolution}</div>"
}
But I would like to substitute {resolution} with the text International, National, Regional, Local – depending on which zoom level the user have zoomed at. But the only variables that can be used is {scale}, {resolution} and {zoom}. How is the best way of adding these new text strings? E.g. I would like International to be associated with zoom level 0,1, and 2.
Thanks
Endre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20150217/629d54e3/attachment.htm
More information about the Users
mailing list