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

103
Views
Agregue una capa base de StamenMaps a través de Open Layer

A través de un código en HTML, intento agregar un mapa base de StamenMaps a través de Open Layer, pero no me funciona.

 <!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="https://openlayers.org/en/v6.5.0/css/ol.css" type="text/css"> <script src="https://openlayers.org/en/v4.6.5/build/ol.js" type="text/javascript"></script> <style> #mapa { height: 100%; width: 100%; } </style> <title>Mapa básico</title> </head> <body> <div id="mapa"></div> <script type="text/javascript"> var vista = new ol.View({ center:[-411000, 4928000], zoom:6 }); var capa = [ new ol.layer.Tile({ source: new ol.source.Stamen({ layer: 'watercolor' }) }), ]; var mapa = new ol.Map({ target:"mapa", layers:[capa], view:vista }); </script> </body> </html>

Cuando hago clic en el archivo, el navegador se queda en blanco. ¿Hay algún problema cuando llamo a la fuente del mapa de StamenMaps?

about 4 years ago · Juan Pablo Isaza
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!