Ticket #141 (closed defect: fixed)

Opened 5 years ago

Last modified 3 years ago

Legend widget is not updating correctly

Reported by: CivilEng Owned by: madair
Priority: P2 Milestone: 2.0
Component: Widgets Version: 1.0.6
Severity: Critical Keywords:
Cc: External ID:
state: New Browser: All
Operating System: Windows

Description

The steps in order to replicate the issue are:

1. To create a new session layer (programatically in MGOS). 2. Next, user themes the new session layer (according to his/her preference) then, the map widget is updated correctly however the legend widget is updated incorrectly.

The ranks shows in the legend widget are correct but the colors are wrongs.

I have used reloadMap since is the unique way of updating the legend programatically. What it happening is that the browser is caching the legend images from previos theme. When the browser cache is deleted then the legend widget is painted correctly.

Attachments

VentanillaFUSIONissue.JPG Download (73.3 KB) - added by CivilEng 5 years ago.

Change History

Changed 5 years ago by CivilEng

  Changed 4 years ago by madair

  • owner changed from pspencer to madair
  • status changed from new to assigned

restored a 'noCache' flag for the legend URL. I'm not able to test your use-case directly so please test again and let us know if the problem is resolved.

  Changed 4 years ago by civileng

with what fusion version must I test?

follow-up: ↓ 4   Changed 4 years ago by madair

this is committed to trunk so if you can test the trunk from SVN that woud be helpful

in reply to: ↑ 3   Changed 3 years ago by civileng

Replying to madair:The trunk SVN version is working perfectly. Also I have tested with the fusion version that come with the mapguide 2.1.0.4283-final. In this case this issue still is present.

this is committed to trunk so if you can test the trunk from SVN that woud be helpful

  Changed 3 years ago by civileng

I would like remark that with the trunk fusion version all maps whose projection system is the 900913 (google projection) are not being displayed correctly. In the startup the map shows a AJAX message: Fusion Error: WARNING: Exception occurred in AJAX callback. Message: this.events[eventID] is undefined Location:  http://localhost/mapguide/fusion/lib/EventMgr.js (59) Response: {"sessionId":"347a9be8-c5a3-102c-8000-0003ff6c0cf3_en_7F0000010AFC0AFB0AFA","mapId":"Library:\/\/Rwanda\/Maps\/rwGmap.MapDefinition?","metersPerUnit":1,"wkt":"PROJCS[\"Popular Visualisation CRS \/ Mercator\",GEOGCS[\"Popular Visualisation CRS\",DATUM[\"Popular_Visualisation_Datum\",SPHEROID[\"Popular Visualisation Sphere\",6378137,0,AUTHORITY[\"EPSG\",\"7059\"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY[\"EPSG\",\"6055\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.01745329251994328,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4055\"]],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],PROJECTION[\"Mercator_1SP\"],PARAMETER[\"central_meridian\",0],PARAMETER[\"scale_factor\",1],PARAMETER[\"false_easting\",0],PARAMETER[\"false_northing\",0],AUTHORITY[\"EPSG\",\"3785\"],AXIS[\"X\",EAST],AXIS[\"Y\",NORTH]]","epsg":0,"siteVersion":"2.1.0.4283","mapTitle":"rwGmap","mapName":"rwGmap4b1d6fd5354dc","backgroundColor":"#ffffff","extent":[3116945,-334111,3450904,-111325],"layers":[{"uniqueId":"34d7d25e-c5a3-102c-8000-0003ff6c0cf3","layerName":"distSHP","layerTypes":[2], ....

Cheers.

  Changed 3 years ago by madair

  • status changed from assigned to closed
  • resolution set to fixed

from the comments, it appears that the original issue has been solved so closing this ticket.

I suspect the Fusion error mentioned in the above comment has been fixed as there has been some fixes applied for commercial map layers as part of other tickets.

Note: See TracTickets for help on using tickets.