POST
|
Hi Marco, thanks for your detailed explanation. I'd rather avoid creating generalized feature classes - I have close to 100 different PDF maps to create. But by the sound of it, I will have to go down this route.
... View more
08-29-2017
02:56 AM
|
0
|
0
|
4038
|
POST
|
Hi Diego, have you looked into the code widget.js? It generalizes features on the fly: //generalize features for display Here we generalize at 1:40,000 which is approx 10 meters //This should work well when using web mercator. var extent = scaleUtils.getExtentForScale(widgetMap, 40000); var resolution = extent.getWidth() / widgetMap.width; params.generalize = true; params.maxAllowableOffset = resolution; params.reducePrecision = true; params.numberOfDigitsAfterDecimal = 0; Personally, I don't want the shapes to be generalized (e.g. a round circle is after generalization not that round anymore as vertices are removed) , so I commented out these few lines of code... Monika
... View more
01-29-2016
07:46 AM
|
1
|
1
|
411
|
POST
|
Hi Robert, yes, I've been already adding the value to the config. But I wasn't sure how to get hold of it and your line of code worked! Thanks a lot for your help, Monika
... View more
01-21-2016
12:44 PM
|
0
|
1
|
367
|
POST
|
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
... View more
01-21-2016
07:02 AM
|
0
|
3
|
2136
|
POST
|
Hello, I created a query using the Query widget and added the result as an operational layer to my map. The legend looks ok in the Legend widget but I don't understand why it's showing a label "Override 1" next to the legend patch in the printed map. Also as you can see on the attached image, the symbol for the original map layer (polygon, no fill, pink outlines) is missing from the legend. Is there a possible solution? Monika
... View more
01-18-2016
11:26 AM
|
1
|
25
|
5767
|
POST
|
Hello, I created a web map in our organization AGOL. I applied Heat Map style to one of the layers in my web map. I turned this heat map layer on and hit print. The printed image included the heat map. I went back to my web map and turned the heat map layer off. I hit print again, my printed image was still showing the heat map layer despite the fact it was turned off! The same issue persists if I create a web app in WebApp builder and use either the default printing service or our own. I'm not sure how the printing task deals with this type of layer. Anyone could please help? Thanks, Monika
... View more
01-13-2016
08:17 AM
|
0
|
0
|
2432
|
Title | Kudos | Posted |
---|---|---|
1 | 01-18-2016 11:26 AM | |
1 | 01-29-2016 07:46 AM |
Online Status |
Offline
|
Date Last Visited |
09-11-2023
09:49 AM
|