Tengo una aplicación esri-leaflet que funciona cuando uso un mapa base (tile) de cloudfront, pero obtengo errores cuando cambio a un mapa base de Stamen.<\/P>
<\/P>
(Ver enlace abajo)<\/P>
ICGC WEB PORTAL<\/A> ....<\/SPAN><\/P> <\/P>Cuando hago clic en un botón para ver el primer botón (Noticias), obtengo el siguiente error:<\/P>Uncaught TypeError: No se puede leer la propiedad 'trim' de undefined<\/P>o.Util.trim @ leaflet.js:5<\/P>cleanUrl @ Util.js:387<\/P>exports.Task.L.Class.extend.initialize @ Task.js:28<\/P>o.Class.extend.e @ leaflet.js:5<\/P>query @ Query.js:229<\/P>(función anónima) @ icgcWebMap5.html:261<\/P>n.event.dispatch @ jquery.js:4435<\/P>n.event.add.r.handle @ jquery.js:4121<\/P> <\/P> <\/P>Y si hago clic en cualquiera de los otros botones, obtengo el siguiente error:<\/P>Uncaught TypeError: No se puede leer la propiedad 'query' de undefined<\/P>(función anónima) @ icgcWebMap5.html:329<\/P>n.event.dispatch @ jquery.js:4435<\/P>n.event.add.r.handle @ jquery.js:4121<\/P> <\/P>Estoy completamente perdido sobre por qué está sucediendo esto. Cualquier ayuda sería muy apreciada<\/P> <\/P>Gracias<\/P>Chris<\/P>
Hey John,
My bad!! I was using an old version of my app
Thanks
Chris
please reread my response to your previous geonet post, as you encountering the exact same problem.
Updating an esri-leaftlet app
you are still passing the url of the service you'd like to query as a plain string to L.esri.Query(), rather than within the options object which is currently required.
var query = L.esri.query(tableURL).where("type like '" + buttonType.value + "'"); // at line 257 needs to be var query = L.esri.query( { url: tableURL } ).where("type like '" + buttonType.value + "'");
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.