Hello, I have been having a problem when I had to show or visualize Large Shapefiles. I cannot drop or drag them because they are too big. When you open the layers, the interface turns laggy. If I upload by DataManager and make a MAP Dataset, the frame rate or the speed improves, but I can not modify the symbology like if I drop the shapefile on the content. My question is how I could change the fill, outline color, and outline width with the script.
I want to change the outline width of the feature from map dataset??
Splitting the shapefiles is not a solution, the frame rate is too slow when I turn on the layers.
Hi Juan,
Yes, this can be achieved with scripting.
Here is a new feature-layers scripting that you can use :
onFeature(function(feature, attributes) { feature.style("ProjectedFeature", { "polygonColor": "rgba(253, 76, 129, 0.9)", // Color of polygon-geometry "lineColor": "rgba(102, 221, 224, 0.9)", // Color of line-geometry "lineWidth": 20, // Line-width in coordinate system units "pointColor": "rgba(233, 253, 76, 0.9)", // Color of point-geometry "pointSize": 45 // Point-radius in coordinate system units });});
This, will soon be released as a default filled-in script when a user creates a new feature -layer!
thanks, another question, when I use the search function, how I can configure to zoom in the Feature? When I searched a feature did the opposite thing, zoom out. and the Polygon Line Width can be configure?