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

123
Views
maplibregl doesn't show in production

I add maplibregl in my react js project but https://api.maptiler.com/tiles/v3/2/0/2.pbf?key=my-key does not load.

map = new maplibregl.Map({
            container: 'map',
            style: 'https://api.maptiler.com/maps/basic/style.json?key=my-key', // stylesheet location
            
            center: [-122.4849334359169, 37.829298101706186], // starting position [lng, lat]
            zoom: 13, // starting zoom
            renderWorldCopies: true,
            bounds:[listShips[0].geometry.coordinates,listShips[1].geometry.coordinates],
            fitBoundsOptions: {padding: 300}
        });
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I have found the answer: you should change the version to

   "maplibre-gl": "^1.15.2",

on your package.json. Then don't forget to npm i .

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!