Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

177
Views
Mostrar ventana emergente en el mapa de arcGIS

Tengo una lista de ubicaciones y si el usuario hace clic en ella, ubicará y mostrará sus detalles en una ventana emergente, en mi comportamiento actual, si hago clic en la ubicación en las listas, la ubicará y aparecerá una ventana emergente. el problema es que la ventana emergente no muestra detalles ni muestra texto

 const onLocationSelect = (location) => { let locationGraphics = []; let point = new Graphic({ attributes: { city: location.address.city, name: location.name, state: location.address.state, street1: location.address.street1, street2: location.address.street2, zipCode: location.address.zipCode, }, }); location.point = point; locationGraphics.push(point); const result = LocationLayer.applyEdits({ addFeatures: locationGraphics, }).then((results) => { if (results) { mapDiv.current.goTo(location).then(() => { mapDiv.current.popup.open({ features:location, location:[ location.geoCode.longitude, location.geoCode.latitude, ] }) }) } }); }

recurso

https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-query-pagination/

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

hacer esto,

 point.popupTemplate = { content: [{ type: "text", // Autocasts as new TextContent text: "The {expression/predominance-tree} species occurs more often" + " than other tree species in the area." }] };

después

features:[point]

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!