[OpenLayers-Users] How many layers can I use with "OpenLayers.Control.WMSGetFeatureInfo"

Milo van der Linden milo at dogodigi.net
Mon Dec 10 01:28:05 PST 2012


Hello Karina,

That is a whole lot of layers. Since the WMSGetFeatureInfo uses the
http-get protocol, there are some (browser-specific) limitations:
http://www.boutell.com/newfaq/misc/urllength.html

Isn't it possible to combine layers? For instance, you now have a microred
layer per municipality, wouldn't it be smarter to make just one microred
layer and make sure that serverside they are all in one layer/file/table?


Op 9 dec. 2012 12:48 schreef "Karina Guardado" <kguardado at gmail.com> het
volgende:

>
> Hello everybody,
>
> I would like to know if there is a limit of layers that I can use with the
> OpenLayers.Control.WMSGetFeatureInfo, because I'm using more than 100 and
> with all the layers after the number 70 I have problems with the popup
> because I can not close them but the others work fine. I'm using
> Openlayers-2.11 , Mapfish, Mapserver, Apache, Linux Debian.
>
> Here is the  code of the control
>
>  toolbar.addControl(new OpenLayers.Control.WMSGetFeatureInfo({
>                   url: '
> http://geo.salud.gob.sv/cgi-bin/mapserv?MAP=/var/www/geominsal/pages/client/minsal.map&',
>
>                   title: 'Identify features by clicking',
>                   queryVisible: true,
>                   infoFormat:'text/html',
>                   click: 'true',
>                   layers: [infecos, infcasasalud, infalbergues,
> infcentronutre, infhospitales, infsibasis, infhogarespera, infpromotor,
> AgisECOS,  Municipios, MuniMesoamerica, infecosmesoamerica,
> proyconstruccion, proyconstruccionAvance, proyequipamiento,
> proyequipamientoAvance, MicroredAtiquizaya, MicroredCaraSucia,
> MicroredGuaymango, MicroredJujutla, MicroredSonsonate, MicroredSonzacate,
> MicroredAcajutla, MicroredIzalco, MicroredLourdesColon, MicroredMetapan,
> MicroredTexistepeque, MicroredElcongo, MicroredTomasPineda,
> MicroredChalchuapa, MicroredTejutla, MicroredLaPalma,
> MicroredNuevaConcepcion, MicroredDulceNombre, MicroredChalatenango,
> MicroredGuarjila, MicroredJoyaCeren, MicroredLaCumbre,
> MicroredCordilleraBalsamo, MicroredMacizoCostero, MicroredCentroNorte,
> MicroredOriente, MicroredSur, MicroredOlocuilta, MicroredRosarioPaz,
> MicroredSantiagoNonualco, MicroredZacatecoluca, MicroredIlobasco,
> MicroredSensuntepeque, MicroredSanVicente, MicroredApastepeque,
> MicroredVerapaz, MicroredSanPedroPerulapan, MicroredCandelaria,
> MicroredCojutepeque, MicroredSanRafaelCedros, MicroredJiquilisco,
> MicroredBerlin, MicroredSantiagoMaria, MicroredUsulutan,
> MicroredConcepcionBatres, MicroredNorteSanMiguel,
> MicroredPonienteSanMiguel, MicroredSurSanMiguel, MicroredCentroSanMiguel,
> MicroredOrienteSanMiguel, MicroredAnamoros, MicroredSantaRosa,
> MicroredLlanoPatos, MicroredLaUnion, MicroredJocoro, MicroredPerquin,
> MicroredOsicala, MicroredSanFranciscoGotera, MicroredSensembra,
> ProyConstruccionPrides, ProyConstruccionAvancePrides,
> ProyequipamientoPrides,
> ProyequipamientoAvancePrides,MicroredAtiquizayaMuni, MicroredCaraSuciaMuni,
> MicroredGuaymangoMuni, MicroredJujutlaMuni, MicroredSonsonateMuni,
> MicroredSonzacateMuni, MicroredAcajutlaMuni, MicroredIzalcoMuni,
> MicroredLourdesColonMuni, MicroredMetapanMuni, MicroredTexistepequeMuni,
> MicroredElcongoMuni, MicroredTomasPinedaMuni, MicroredChalchuapaMuni,
> MicroredTejutlaMuni, MicroredLaPalmaMuni, MicroredNuevaConcepcionMuni,
> MicroredDulceNombreMuni, MicroredChalatenangoMuni, MicroredGuarjilaMuni,
> MicroredJoyaCerenMuni, MicroredLaCumbreMuni, MicroredCordilleraBalsamoMuni,
> MicroredMacizoCosteroMuni, MicroredCentroNorteMuni, MicroredOrienteMuni,
> MicroredSurMuni, MicroredOlocuiltaMuni, MicroredRosarioPazMuni,
> MicroredSantiagoNonualcoMuni, MicroredZacatecolucaMuni,
> MicroredIlobascoMuni, MicroredSensuntepequeMuni, MicroredSanVicenteMuni,
> MicroredApastepequeMuni, MicroredVerapazMuni,
> MicroredSanPedroPerulapanMuni, MicroredCandelariaMuni,
> MicroredCojutepequeMuni, MicroredSanRafaelCedrosMuni,
> MicroredJiquiliscoMuni, MicroredBerlinMuni, MicroredSantiagoMariaMuni,
> MicroredUsulutanMuni, MicroredConcepcionBatresMuni,
> MicroredNorteSanMiguelMuni, MicroredPonienteSanMiguelMuni,
> MicroredSurSanMiguelMuni, MicroredCentroSanMiguelMuni,
> MicroredOrienteSanMiguelMuni, MicroredAnamorosMuni, MicroredSantaRosaMuni,
> MicroredLlanoPatosMuni, MicroredLaUnionMuni, MicroredJocoroMuni,
> MicroredPerquinMuni, MicroredOsicalaMuni, MicroredSanFranciscoGoteraMuni,
> MicroredSensembraMuni, infecosAtiquizaya, infhospitalesAtiquizaya,
> infecosCaraSucia, infhospitalesCaraSucia, infecosGuaymango,
> infhospitalesGuaymango, infecosJujutla, infhospitalesJujutla,
> infecosAhuachapan, infhospitalesAhuachapan, infecosSonsonate,
> infhospitalesSonsonate, infecosSonzacate, infhospitalesSonzacate,
> infecosAcajutla, infhospitalesAcajutla, infecosIzalco, infhospitalesIzalco,
> infecosLourdesColon, infhospitalesLourdesColon, infecosMetapan,
> infhospitalesMetapan, infecosTexistepeque, infhospitalesTexistepeque,
> infecosElcongo, infhospitalesElcongo, infecosTomasPineda,
> infhospitalesTomasPineda, infecosChalchuapa, infhospitalesChalchuapa,
> infecosTejutla, infhospitalesTejutla, infecosLaPalma, infhospitalesLaPalma,
> infecosNuevaConcepcion, infhospitalesNuevaConcepcion, infecosDulceNombre,
> infhospitalesDulceNombre, infecosChalatenango, infhospitalesChalatenango,
> infecosGuarjila, infhospitalesGuarjila, infecosJoyaCeren,
> infhospitalesJoyaCeren, infecosLaCumbre, infhospitalesLaCumbre,
> infecosCordilleraBalsamo, infhospitalesCordilleraBalsamo,
> infecosMacizoCostero, infhospitalesMacizoCostero, infecosCentroNorte,
> infhospitalesCentroNorte, infecosOriente, infhospitalesOriente, infecosSur,
> infhospitalesSur, infecosOlocuilta, infhospitalesOlocuilta,
> infecosRosarioPaz, infhospitalesRosarioPaz, infecosSantiagoNonualco,
> infhospitalesSantiagoNonualco, infecosZacatecoluca,
> infhospitalesZacatecoluca, infecosSensuntepeque,
> infhospitalesSensuntepeque, infecosIlobasco, infhospitalesIlobasco,
> infecosSanVicente, infhospitalesSanVicente, infecosVerapaz,
> infhospitalesVerapaz, infecosApastepeque, infhospitalesApastepeque,
> infecosSanPedroPerulapan, infhospitalesSanPedroPerulapan,
> infecosCandelaria, infhospitalesCandelaria, infecosCojutepeque,
> infhospitalesCojutepeque, infecosSanRafaelCedros,
> infhospitalesSanRafaelCedros, infecosJiquilisco, infhospitalesJiquilisco,
> infecosBerlin, infhospitalesBerlin, infecosSantiagoMaria,
> infhospitalesSantiagoMaria, infecosUsulutan, infhospitalesUsulutan,
> infecosConcepcionBatres, infhospitalesConcepcionBatres,
> infecosNorteSanMiguel, infhospitalesNorteSanMiguel,
> infecosPonienteSanMiguel, infhospitalesPonienteSanMiguel,
> infecosSurSanMiguel, infhospitalesSurSanMiguel, infecosCentroSanMiguel,
> infhospitalesCentroSanMiguel, infecosOrienteSanMiguel,
> infhospitalesOrienteSanMiguel, infecosAnamoros, infhospitalesAnamoros,
> infecosSantaRosa, infhospitalesSantaRosa, infecosLlanoPatos,
> infhospitalesLlanoPatos, infecosLaUnion, infhospitalesLaUnion,
> infecosJocoro, infhospitalesJocoro, infecosPerquin, infhospitalesPerquin,
> infecosOsicala, infhospitalesOsicala, infecosSanFranciscoGotera,
> infhospitalesSanFranciscoGotera, infecosSensembra, infhospitalesSensembra,
> RegionOriental, RegionParacentral, RegionCentral, RegionOccidental,
> RegionMetropolitana ],
>                   eventListeners: {
>                   getfeatureinfo: function(event) {
>                   map.addPopup(new OpenLayers.Popup.FramedCloud(
>                         \"chicken\",
>                         map.getLonLatFromPixel(event.xy),
>                         null,
>                         event.text,
>                         null,
>                         true
>                     ));
>                    }
>                }
>              },{
>             isDefault: true,
>             title: 'Info'
>         }),
>         {
>             iconCls: 'query',
>             toggleGroup: 'map'
>         });
>
>
>
> thanks and regards
>
>
> Karina Guardado
> El Salvador
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121210/43220c40/attachment-0001.html>


More information about the Users mailing list