[OpenLayers-Users] How many layers can I use with "OpenLayers.Control.WMSGetFeatureInfo"
Karina Guardado
kguardado at gmail.com
Sun Dec 9 03:48:37 PST 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121209/9fbb764b/attachment.html>
More information about the Users
mailing list