[Users] ScaleStore Demo Bug
geographika
geographika at gmail.com
Wed Feb 23 20:53:13 CET 2011
Hi list,
I have run into some issues while using code based on the ScaleStore
demo at http://api.geoext.org/1.0/examples/zoom-chooser.html and
http://api.geoext.org/1.0/examples/zoom-chooser.js
The sample code searches for a record in the scale store based on zoom
level. However if using several different baselayers with different
numbers of zoom levels, when changing baselayer the scale shown in the
combobox is incorrect. Original code:
var scale = scaleStore.queryBy(function(record){
return this.map.getZoom() == record.data.level;
});
Using a search based on resolution does not have this problem:
var scale = this.store.queryBy(function(record){
return this.map.getResolution() == record.data.resolution;
});
Shall I open a ticket related to the demo code, or is this thought of as
separate from the main codebase?
Regards,
Seth
--
web:http://geographika.co.uk
twitter: @geographika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110223/5d9fe39d/attachment.htm
More information about the Users
mailing list