[ka-Map-users] Customization of ka-Map legend

Paul Spencer pspencer at dmsolutions.ca
Tue Jun 27 17:20:48 EDT 2006

I think it would be reasonable to have a set of global variables that  
control this kind of thing and modify the individual controls to be  
somewhat configurable.  The legend control is one that can quite  
easily be configurable in this case.

For the legend, this would entail adding a couple of attributes to  
the constructor of the kaLegend class and using those to optionally  
include or not include some of the controls.

I'll look at adding this to the cvs version



On 27-Jun-06, at 4:02 PM, Daniel Morissette wrote:

> The style of the ka-Map legend is kind of hardcoded in kaLegend.js.  
> It seems that the only way to customize it is by editing the  
> core .js files, but then that doesn't make for easy upgrades of an  
> application down the road.
> For instance, one may want to remove the layer transparency and  
> promote/demote layer controls. Any thoughts on how we could handle  
> this kind of customizations in a generic way in ka-Map without  
> modifying core files, so that upgrading the core ka-Map files in an  
> existing application can be done easily?
> Perhaps something as simple as setting some kind of prefs in  
> JavaScript in the index.html before the call to myOnLoad() could  
> do. Hopefully those with more experience with the JavaScript side  
> of ka-Map will have better ideas.
> Daniel
> -- 
> Daniel Morissette
> http://www.mapgears.com/
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

|Paul Spencer                           pspencer at dmsolutions.ca   |
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|

More information about the ka-Map-users mailing list