Procházet zdrojové kódy

Enhance feature pop-up info

jmacura před 5 roky
rodič
revize
bc89080b01
1 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. 6 1
      src/app.component.js

+ 6 - 1
src/app.component.js

@@ -88,12 +88,17 @@ export const nuts2Layer = new VectorLayer({
 
 export const nuts3Layer = new VectorLayer({
   source: nuts.nuts3Source,
+  editor: {editable: false},
   visible: true,
   style: styles,
   title: 'NUTS3 regions',
 });
 nuts3Layer.set('popUp', {
-  attributes: [{attribute: 'km25.cluster', label: 'Cluster ID'}],
+  attributes: [
+    {attribute: 'CNTR_CODE', label: 'Country'},
+    {attribute: 'NUTS_NAME', label: 'Name'},
+    {attribute: 'km25.cluster', label: 'Cluster ID'},
+  ],
 });
 
 /**