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

186
Views
Folleto: ¿cómo puedo establecer latitud y longitud negativas?

Hice un mapa para mi Minetest Game que juego.

El proyecto está aquí: https://github.com/amelaye/aiwMapping Creé el mapa con el script de Python gdal2tiles, así: ./gdal2tiles.py -l -p raster -z 0-10 -w none ../ mapa.png ../mosaicos

Aquí está la parte interesante del código:

 var minZoom = 0 var maxZoom = 9 var img = [ 20000, // original width of image 20000 // original height of image ] // create the map var map = L.map(mapid, { minZoom: minZoom, maxZoom: maxZoom }) var rc = new L.RasterCoords(map, img) map.setView(rc.unproject([9000, 10554]), 7) L.control.layers({ 'Spawn': layerGeoGlobal(window.geoInfoSpawn, map, rc, 'red', 'star', 'fa'), }, { 'Bounds': layerBounds(map, rc, img), }).addTo(map) L.tileLayer('./tiles/{z}/{x}/{y}.png', { noWrap: true, attribution: '' }).addTo(map)

Funciona de maravilla, pero hay un problema: en Minetest, las coordenadas (lat y lon) van de -10000 a 10000. En mi mapa Leaflet, las coordenadas siguen siendo positivas, luego van de 0 a 20000.

Como puedó resolver esté problema ?

CRS SIMPLE no funciona.

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!