Hello,
I changed the Attribute Table widget. In the setting page of the widget I set a value of the map scale I want my map to zoom to if I select a point feature in the attribute table. Reason - I'm only using our own background maps which are dynamic map services. The code in the _FeatureTable.js is designed to work with tiled basemaps. Every "Zoom to" click I make, the map zooms closer and closer.
I could hard code the value in the _FeatureTable.js but I'd rather control it through the widget setting. My question is how to pass the config value from the config file to the _FeatureTable.js?
} else if (method === "zoom") {
this.getExtent(result).then(lang.hitch(this, function(gExtent) {
if (gExtent) {
if (gExtent.type === "point") {
var currentScale = this.map.getScale();
var factor = MY ZOOM SCALE FROM CONFIG / currentScale;
levelOrFactor = this.map.getMaxZoom() > -1 ? this.map.getMaxZoom() : 0.1;
this.map.centerAndZoom(gExtent, factor);
Thanks for any help, Monika