Ko'proq

Ochiq pleyerlarda nuqta rangini geoJsondan dinamik ravishda qanday o'zgartirish mumkin

Ochiq pleyerlarda nuqta rangini geoJsondan dinamik ravishda qanday o'zgartirish mumkin


Men Openlayers -da yangiman va men qilmoqchi bo'lgan narsa - bu GeoJSON fayli o'qigan ba'zi nuqtalarga dinamik ravishda rang berish. Men bu postdan ilhom olaman

OpenLayers GeoJSON qatlamiga infowindowni qanday qo'shish mumkin?

lekin kodimda nima noto'g'ri ekanligini tushunolmayapman:

va bu erda men foydalanmoqchi bo'lgan Colori.json GeoJSON fayli:

{"type": "FeatureCollection", "features": [{"type": "Feature", "properties": {"colore": 7}, "geometry": {"type": "Point", "koordinatalar") ": [8.692, 49.412]}}]}

Videoni tomosha qiling: Display PostGIS data with Leaflet through GeoJSON API