Geographic Information Systems Asked by vagvaf on October 2, 2021
I have a PostGIS table linked to GeoServer and eventualy with OpenLayers in a web map app.
Recently, I have created and populated a new column in the table (called atgid) but it seems that I am unable to get the respective feature value in OpenLayers via feature.get() function.
In GeoServer:
I can see the new property/column (atgid) being listed under Feature Type Details
in GeoServer and when I use the layer preview functionality, I see the different values when I click on a specific feature.
In OpenLayers:
However, when I load the layer as VectorTile in OpenLayers and get its features properties (feature.getProperties()
) my newly created property (atgid) is not even listed, let alone accessed.
Any ideas as to what may be causing this?
I have restarted my browser and even my PC to avoid cache related issues.
Your web browser has cached your vector tiles because they are big and it is slow to download them so your new features won't show up until such time as your cached copy is cleared or expires.
Correct answer by Ian Turton on October 2, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP