Opened 16 years ago

Closed 12 years ago

#131 closed enhancement (fixed)

ability to return all legend icons inside one image

Reported by: assefa Owned by: madair
Priority: P2 Milestone: 2.3
Component: Widgets Version: 1.0.7
Severity: Major Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

This bug is to track development on the ability to return all icons inside one image. This should reduce time when using these icons in the legend. The first implementation would be for the MapServer version

Change History (6)

comment:1 by assefa, 16 years ago

Owner: changed from madair to pagameba

on the Mapserver side LoadScaleRanges is modified to return the icon positions for each style and also return the url to the image containing all the icons. (r1548) (please refer to bug http://trac.osgeo.org/fusion/ticket/129 for details on scaleranges /loadmap modification

The client side to be update (Mapserve.js + Legend) to parse and use it.

Assigning it to Paul for the client side update.

comment:2 by tnolte, 15 years ago

I've made some considerable changes to the LoadScaleRanges script as it was discovered that using the $_SESSION proved to be unreliable. Used the session and map name to make a direct read to the session map file(s). Also copied the "scale_ranges" building process from LoadMap directly into the LoadScaleRanges. This fixed the issue of the legend icons not being built correctly. I also made some changes to the Legend.js widget script to account for the as yet finished process of using just the sprite image. After loading up the map Legend updates were happening the old way but the background image positioning wasn't being reset back to '0px 0px' which caused the Legend icons not to show up. Will either come back to this and complete the changes to just use the sprite image or defer to Paul to finish that section up.

comment:3 by madair, 15 years ago

Milestone: 2.02.1

this is done for MapServer, do the same for MapGUide in 2.1

comment:4 by madair, 14 years ago

Milestone: 2.12.3

comment:5 by madair, 14 years ago

Owner: changed from pagameba to madair
Status: newassigned

I don't see any image manipulation code in the MapGuide API (to assemble a sprite form icons) so this would need an external library. Is this something that we want to ring in to Fusion?

comment:6 by jng, 12 years ago

Resolution: fixed
Status: assignedclosed

Inline data URI icon support on the MapGuide side effectively fixes this.

Note: See TracTickets for help on using tickets.