1const e=`// This is javascript code. Here you can modify map, layers and data. 2// See module source code for complete API: https://gitlab.com/abc-map/abc-map/-/tree/master/packages/webapp/src/modules/scripts 3 4// In this script, we will iterate the regions of France and add a label to them 5 6// We select features we want to use 7const {getLayers} = scriptApi; 8const regionsOfFrance = getLayers().find(layer => layer.name === 'Regions of France').getFeatures(); 9 10// We iterate regions to add a text label 11for (const region of regionsOfFrance) { 12 const name = region.getProperties().name; 13 region.setStyle({text: {value: name, size: 15}}); 14}`;export{e as default}; 15//# sourceMappingURL=labels-C5k95tJO.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.