[mapguide-internals] Re: CSS sprited legend images - RFC

Zac Spitzer zac.spitzer at gmail.com
Sun May 22 21:42:34 EDT 2011


attached is a sample json document for Sheboygan

On Mon, May 23, 2011 at 11:37 AM, Jackie Ng <jumpinjackie at gmail.com> wrote:
> At the moment, our current fusion modifications pre-cache layer icons (with
> inline data URIs) up to:
>
>  a) 25 icons per style (ie. If a theme has > 25 rules, it generates the
> first 25 icons)
>  b) 3 scale ranges deep (from the top-most downwards)
>
> But even with this approach, we are still bottlenecked somewhat by
> MgMappingService::GenerateLegendImage(), as we have to call this
> individually *per icon*. Looking at the server-side implementation of this
> API, it looks like it has to scan at the LayerDefinition content *every
> time*
> we want an icon.
>
> What would be nice is to have a batched form of this API, that returns a
> JSON-encoded structure that Zac described. Also this API can be subject to
> the same server-caching rules that apply to Feature Schemas and Spatial
> Contexts (cache it until a SETRESOURCE call is made on that Layer Definition
> ID)
>
> - Jackie
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/CSS-sprited-legend-images-RFC-tp5910589p6392816.html
> Sent from the MapGuide Internals mailing list archive at Nabble.com.
> _______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
>



-- 
Zac Spitzer
Solution Architect / Director
Ennoble Consultancy Australia
http://www.ennoble.com.au
http://zacster.blogspot.com
+61 405 847 168


More information about the mapguide-internals mailing list