Comments (4)
Hi @carekapt , I have updated the script for Lizmap >= 3.7 : https://github.com/3liz/lizmap-javascript-scripts/tree/master/library/misc/refresh_layers_every_n_seconds Does it work for you?
YES!
Many thanks, it works like a charm!
from lizmap-web-client.
It seems we need to find the OpenLayers object, not sure how to get that from the new API, then .getSource().refresh();
needs to be call on this object, according to OpenLayers API.
But do we get the OL object ?
The script "Refresh layer" is on the library : https://github.com/3liz/lizmap-javascript-scripts/?tab=readme-ov-file#miscellaneous but it needs to be updated
from lizmap-web-client.
It seems we need to find the OpenLayers object, not sure how to get that from the new API, then
.getSource().refresh();
needs to be call on this object, according to OpenLayers API.But do we get the OL object ?
I don't get an object...a get undefined...I only get an object in LWC 3.5.12
from lizmap-web-client.
Hi @carekapt ,
I have updated the script for Lizmap >= 3.7 : https://github.com/3liz/lizmap-javascript-scripts/tree/master/library/misc/refresh_layers_every_n_seconds
Does it work for you?
from lizmap-web-client.
Related Issues (20)
- [Bug]: "!" in the password for database connection leads to Error 500 HOT 4
- [Bug]: Error when cleaning the project cache
- Ability to collapse / expand layers at startup HOT 7
- [Question]: Plugin URL HOT 5
- [Bug]: Hidden field appears in popup HOT 16
- [Question]: www.dist copy after reboot
- [Question]: Select/Deselect all layers Button HOT 6
- [Bug]: n:m relation not shown correctly HOT 1
- Adding an external web geoservice embeded into the map : Imajnet for instance
- [Bug]: WMS legend not shown any longer in LWC 3.7+ for non-baselayer WMS layer HOT 2
- [Bug]: "Get images directly from WMS Server" is not working in LWC 3.7+ for non-baselayer layers HOT 2
- [Bug]: Cannot retrieve new password V3.7.5 HOT 3
- Instruction for Redis cache HOT 5
- [Bug]: 3.8.0: Change zoom section for first get feature query
- If server cache is activeted, select categories doesn't work HOT 8
- Attribution only for baselayers HOT 1
- [Bug]: empty hidden group leads to fatal HOT 1
- [Bug]: Histogram "sum" does not sum but counts instead
- [Bug]: Baselayers are not rendered below 1:2000 scale HOT 1
- Can't edit PostGIS layer HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lizmap-web-client.