lizmap-web-client icon indicating copy to clipboard operation
lizmap-web-client copied to clipboard

[Bug]: Timemanager does not show location pointer while running.

Open petunja opened this issue 3 years ago • 19 comments

What is the bug?

Hi to all, I used timemanager in lizmap_3_3 and also modified.. It was all ok. Now, with lizmap_3_5, I have a problem. Timemanager doesn't show poiter while running. I add my project to let you see if there are errors in configuration. tank you

. alas.zip

Steps to reproduce the issue

  1. copy project in your lizmap repositories folder
  2. add project to lizmap pointing to folder
  3. open project in lizmap
  4. open timeManager tool
  5. start track
  6. observe there is no pointer during play

Lizmap version

3.5

QGIS desktop version

3.6.1

QGIS server version

3.22.3

Operating system

mint 20.3 cinnamon

Browsers

Chrome

Browsers version

chromium 97.0.4692.99

Relevant log output

no log entries.

petunja avatar Feb 03 '22 15:02 petunja

Did you reuse the Lizmap plugin to regenerate the CFG file ? (using the timemanager tool in the QGIS desktop plugin) Configuration from LWC 3.3 to 3.4 has changed in the CFG file.

You didn't upload the ZIP project correctly.

Gustry avatar Feb 03 '22 15:02 Gustry

yes, I did all by zero:

  • lizmap installation 2.5 (on virtualbox)
  • qgis plugin last version (3.7.1)
  • project qgis (qgis desktop 3.6)

I updated the zip file.. tank you.

petunja avatar Feb 03 '22 18:02 petunja

I was asking to myself if I did error with datetime:

I setted datetime format as: aaaa/mm/gg hh:mm:ss (i tries also aaa-mm-gg hh:mm.ss)

in lizmap qgis-plugin I setted: frame-duration: 1 kind of frame: seconds animation duration frame: 1000ms

(I have one point per second in my track)

looking at console (chromium) I read a warning, I don't nderstand if it could cause this issue: moment.js:1 Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info. Arguments: [0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: 2022/01/26 12:57:32, _f: undefined, _strict: undefined, _locale: [object Object] Error at Function.createFromInputFallback (http://localhost/gis/lizmap/www/assets/js/moment.js:1:3368) at Ot (http://localhost/gis/lizmap/www/assets/js/moment.js:1:21539) at Tt (http://localhost/gis/lizmap/www/assets/js/moment.js:1:22250) at bt (http://localhost/gis/lizmap/www/assets/js/moment.js:1:22332) at c (http://localhost/gis/lizmap/www/assets/js/moment.js:1:209) at http://localhost/gis/lizmap/www/assets/js/timemanager.js:78:44 at getDataFromLayer (http://localhost/gis/lizmap/www/assets/js/timemanager.js:137:21) at activateTimemanager (http://localhost/gis/lizmap/www/assets/js/timemanager.js:71:21) at Object.minidockopened (http://localhost/gis/lizmap/www/assets/js/timemanager.js:30:29) at initialize.triggerEvent (http://localhost/gis/lizmap/www/assets/js/OpenLayers-2.13/OpenLayers.js:255:145)

someone can help me? tank you.

petunja avatar Feb 10 '22 10:02 petunja

Did you check your date time format : https://docs.lizmap.com/current/en/publish/lizmap_plugin/time_manager.html#configuring-the-tool ?

You can also download the demo project : https://demo.lizmap.com/lizmap/index.php/view/map/?repository=feat1&project=time_manager_earthquake

Gustry avatar Feb 10 '22 10:02 Gustry

Yes, i did, and I had no errors.

I tried to redo again qgis project (by zero). I also tried a new datetime format (aaaa-mm-ggThh:mm:ss)... ..same result.

when I open project with chromium console opened i have foolowing messages (also if the project is correctly opened):

GET http://localhost/gis/lizmap/www/assets/js/lizmap.js net::ERR_ABORTED 404 (Not Found)
JQMIGRATE: Migrate is installed, version 3.3.1 jquery-migrate-3.3.1.min.js:2 
GET http://localhost/gis/lizmap/www/assets/js/lizmap.js net::ERR_ABORTED 404 (Not Found)
[Violation] 'setTimeout' handler took 230ms  jquery-3.5.1.min.js:2
[Violation] Forced reflow while executing JavaScript took 37ms 
16(times) [Violation] Added non-passive event listener to a scroll-blocking <some> event. Consider marking event handler as passive' to make the page more responsive. See <URL>

when I click on timemanager, layer disappears. If I play (click on start) timemanager start correctly and time updates as expected, but I can't see any pointer to map (no waypoint hilighted.

with this new timedate format (aaaa-mm-ggThh-mm-ss) I have no more moment.js:1 Deprecation warning reported in my previous comment.

petunja avatar Feb 10 '22 11:02 petunja

I have remade project another time by zero. now I receive this warning (chromium console): moment.js:1 Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info. Arguments: [0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: 2022/01/26 12:57:34.000, _f: undefined, _strict: undefined, _locale: [object Object] Error at Function.createFromInputFallback (http://localhost/gis/lizmap/www/assets/js/moment.js:1:3368) at Ot (http://localhost/gis/lizmap/www/assets/js/moment.js:1:21539) at Tt (http://localhost/gis/lizmap/www/assets/js/moment.js:1:22250) at bt (http://localhost/gis/lizmap/www/assets/js/moment.js:1:22332) at c (http://localhost/gis/lizmap/www/assets/js/moment.js:1:209) at http://localhost/gis/lizmap/www/assets/js/timemanager.js:78:44 at getDataFromLayer (http://localhost/gis/lizmap/www/assets/js/timemanager.js:137:21) at activateTimemanager (http://localhost/gis/lizmap/www/assets/js/timemanager.js:71:21) at Object.minidockopened (http://localhost/gis/lizmap/www/assets/js/timemanager.js:30:29) at initialize.triggerEvent (http://localhost/gis/lizmap/www/assets/js/OpenLayers-2.13/OpenLayers.js:255:145)

hope this will help you to help me.

petunja avatar Feb 10 '22 19:02 petunja

Can you share a screenshot of your attribute table (especially the time field) ? And the lizmap configuration ?

Gustry avatar Feb 11 '22 10:02 Gustry

timemanager0 timemanager1 timemanager2 attribute table

I leave a zip file of project:

alas.zip

tank you.

petunja avatar Feb 13 '22 18:02 petunja

I'm going crazy.. I tried to re-convert my csv file as EsriShape giving attention to timedate format in layer (from properties of layer). now I can save layer with correct time-date format (yyyy-MM-dd hh:mm:ss insetad of having also milliseconds). I tried this thinking milliseconds was the problem. Nothing changed..

I don't know if there is a precise conversion procedure from csv to shape file that I must observe to have a correct visualization of points during timemager play.

I can start play and datetime updates in timemanager, but I can't see any hilighted point. I posted above a warning about moment deprecation, but I don't think its the fault (it's a warning and I can play timemanager).

I opened chromium console (elements tab) during timemanager-playing and I selected map. I found a refresh every second wich show this code changings (they refresh every second): Senza titolo-3

If I open chromium console (network tab) during timemanger-playing, I see two elements refreshing every second:

  1. xhr file: if I open it on a new tab it show me an xml message (see image below)
  2. png file: if I open it on a new tab it show an empty image Senza titolo-4

I think this part of code (shown by two images thatI added) is responsible to timemnager map-updating. I think this empty image is why I can't see any hilighted ponts on map, but I can't understand why. Hope this can help to understand causes.

I don't undestand if I wrong project settings in qgis-desktop or I wrong some setting in lizmap or qgis-server.

If someone could give me a project wich surelly works with timemanager I could test it on my server and check if the problem is the server or the project.

tank you a lot

petunja avatar Feb 16 '22 12:02 petunja

hi @petunja in your case, you are working in seconds, try to increment the "tmAnimationFrameLength" parameter from 1000ms to 4000ms (or more)

josemvm avatar Feb 18 '22 14:02 josemvm

Hi @josemvm , tank you very much for your help. I tried your suggestion, but I had no results. (with 4000ms, 6000ms.. no changes).

I downloaded and used Eathquakes demo project (https://demo.lizmap.com/lizmap/index.php/view/map/?repository=feat1&project=time_manager_earthquake) on my localhost server and It worked as expected with timemanager.

So I can be sure that the problem is not the infrastructure: the server works and it can play timemanager on Earthquakes project.

I compared every single setting between my project and the demo project and I tried to match every setting between them. I still can't plat timemanger on my project. As I open minidock (timemanager menu), my layer disappear and also if timenanger can be correctly started and it start update datetime, it shows any point on map.

I previously uploaded my project in this topic, I gently ask to anyone would be so nice to try test it and check if something is wrong setted or broken to be used with timenager features. I reload the project after many checks and comparisions with the demo project (it could be a little changed after comparision) alasio.zip

I'm going crazy because I really can't see any difference from earthquakes demo project and mine.

  • same project settings
  • same layer settings
  • same lizmap qgis-plugin settings

I repeat, when I open timenanger my layer simply disappear. (no log on lizmap, no error in chomium console)

To be clear, I realized my layer importing a csv (with lon-lat features for any table-row) and exported (and used) a shapefile made by this csv.

I did this with:

  • Mint 20.3(una) 64.bit
  • apache2
  • qgis desktop: 1:3.22.3+32focal
  • qgis server: 1:3.22.3+32focal
  • qgis lizmap qgis-plugin 3.7.4 updated at Tue Feb 15 08:04:59 2022
  • lizmap web client 3.5.1 (https://github.com/3liz/lizmap-web-client/releases/download/3.5.1/lizmap-web-client-3.5.1.zip)
  • chromium browser

Tank you for nay.. any suggestion.

petunja avatar Feb 20 '22 13:02 petunja

@petunja did you try with frame type = minutes instead of seconds

josemvm avatar Feb 20 '22 19:02 josemvm

Hi @josemvm, yes, I tired with "frame type" as minutes and hours. (no effects) I tried also to make a new project, with new layer and few lines in tables, but nor this one is played by timemanager.

I think problem is with filter (FILTERTOKEN in http request). When I open Timemanager minidock in my project, layer disappear immediatelly (as it open timemanager menu) when I do it on demo project (earthquakes), layer still reamain visible.

In the network tab (chromium console), when I open timemanager in an open project, i see a new request link as: http://localhost/lizmap/index.php/lizmap/service/?repository= ..... in case of heartquake the link show an image with earthquakes (first frame of timeset) in case of my project the image is empty (no points)..

this is as first frame of heartquakes: qgis_server_wms_map_earthquakes_time_manager_earthquake

(clearly I don't upload my project correspective because is empty)

petunja avatar Feb 20 '22 20:02 petunja

This issue is missing some feedbacks. 👻 Please have a look to the discussion, thanks. 🦎

3liz-bot avatar Mar 25 '22 04:03 3liz-bot

This issue is missing some feedbacks. 👻 Please have a look to the discussion, thanks. 🦎

3liz-bot avatar Apr 29 '22 04:04 3liz-bot

This issue is missing some feedbacks. 👻 Please have a look to the discussion, thanks. 🦎

3liz-bot avatar Jun 03 '22 04:06 3liz-bot

This issue is missing some feedbacks. 👻 Please have a look to the discussion, thanks. 🦎

3liz-bot avatar Jul 12 '22 04:07 3liz-bot

This issue is missing some feedbacks. 👻 Please have a look to the discussion, thanks. 🦎

3liz-bot avatar Aug 16 '22 04:08 3liz-bot

This issue is missing some feedbacks. 👻 Please have a look to the discussion, thanks. 🦎

3liz-bot avatar Sep 16 '22 05:09 3liz-bot