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


_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to