فهرست منبع

Enhance feature pop-up info

jmacura 5 سال پیش
والد
کامیت
bc89080b01
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  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'},
+  ],
 });
 
 /**