[ka-Map-dev] [Bug 2056] New: cargar un solo layer en mapa

Samuel Hiatt samhiatt at gmail.com
Wed Jun 3 12:59:32 EST 2009


Hola.

No se cual exactamente es tu asunto, pero tengo algunas sugerencias...

Primero, si no usas Firebug ya, lo recomendio sumamente.  Yo no podria vivir
sin Firebug, ya que es un debugger de javascript buenisimo.  :)

A primer vistazo, parece que tu codigo deberia funcionar, y no veo la
necesidad de usar 'this'.  Pero si quieres ver que valor lleva 'this', lo
podras averiguar con Firebug.

Yo adivino que el problema es en el valor de bVisible.  Has puesto un string
literal *'true'*, no el boleano *true*.  Intenta quitar los quotes.

Finalmente, sugiero que uses esta lista: ka-map-dev at lists.maptools.org para
preguntas de este tipo.  No se cuantos hablamos espanol en esta lista, pero
es mejor para buscar ayuda del codigo.

Good luck!

Sam


BRIEF TRANSLATION -

Try using Firebug.  It's the greatest thing thats ever happened to
javascript.  :p

I don't think you should be quoting *true*.  It should be a boolean, not a
string.

Use this list, not bugzilla for this type of question.

Sam


On Wed, Jun 3, 2009 at 8:49 AM, <bugzilla-daemon at bugzilla.maptools.org>wrote:

> http://bugzilla.maptools.org/show_bug.cgi?id=2056
>
>           Summary: cargar un solo layer en mapa
>           Product: ka-Map
>           Version: 1.0
>          Platform: PC
>        OS/Version: Windows 2000
>            Status: NEW
>          Severity: critical
>          Priority: P2
>         Component: documentation
>        AssignedTo: ka-map-dev at lists.maptools.org
>        ReportedBy: evenegas at getmedia.cl
>
>
> estoy ocupando ka explorer y necesito cargar un solo layer en el mapa sin
> pasar
> por el menu checkbox.
> tengo la siguiente funcion
>
> function load_Layer() {
>
>    name='VERTICES';
>    bVisible='true';
>
>    layer=getLayer(name);
>        layer.visible=true;
>        setMapLayers();
>        aMaps[currentMap].setLayerVisibility( name, bVisible );
>        paintLayer(layer);
>
> }
>
> se que me falta 'this' pero no se que valor lleba, ademas la estoy llamando
> desde una consulta.
>
> --
> Configure bugmail: http://bugzilla.maptools.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are the assignee for the bug.
> _______________________________________________
> ka-Map-dev mailing list
> ka-Map-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-dev/attachments/20090603/8258c21d/attachment.htm 


More information about the ka-Map-dev mailing list