[ka-Map-dev] Reload legend on map change / Recarga de leyenda al cambiar mapa

Carlos Quintanilla Sánchez carquisa at gmail.com
Tue Oct 13 05:41:09 EST 2009


Hello everybody!

We have been using ka-map for last months and are developing a new interface
where the user can select the map and the themes to be shown in it.

We have also done a code to allow the user to select different spatial
layers (as country borders) but just one theme layer (total population,
population under 18...).

First time you navigate a map everything works fine, the problem comes
whenever you change the map to another theme and go back to the first one:
the javascript code that we wrote in order to just allow one theme layer at
same time seems to be lost somewhere. It allows the user to check as many
checkboxes as he wish but it just shows the information of the last marked
one (if you unchecked that one the map doesn't show any information, just
borders, but the checkboxes are checked!).

Is there any place where we can say ka-map to redraw the legend when you
select a map as it does first time you load it?

Thank you in advance and congratulations for the great application!

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Hola a todos!

Hemos estado utilizando ka-map desde hace unos meses y estamos desarrollando
una nueva interfaz donde el usuario puede seleccionar el mapa y temática que
quiere visualizar en él.

También hemos escrito un código para permitir al usuario seleccionar
diferentes capas espaciales (como fronteras de paises) pero sólo una capa
temática (población total, población menor de 18...).

La primera vez que navegas por el mapa todo funciona correctamente, el
problema viene cuando cambias de mapa a otro tema y vuelves al primero: el
código javascript que escribimos para permitir únicamente una capa temática
a la vez parece haberse perdido en alguna parte. Ahora permite al usuario
marcar los checkboxes que quiera pero sólo muestra la información del último
marcado (si desmarcas éste, el mapa no muestra información, únicamente
fronteras, aunque los checkbox están marcados).

Hay algún lugar donde podamos decirle a ka-map que redibuje la leyenda
cuando seleccionas un mapa como hace la primera vez que lo cargas?

Gracias de antemano y felicidades por la genial aplicación!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-dev/attachments/20091013/94477e94/attachment.htm 


More information about the ka-Map-dev mailing list