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

332
Views
Unable to overlay an image on google maps

I am currently trying to overlay an image on google maps. By far, I was successful in getting that image on the google maps but it wasn't on the correct position.

I have co-ordinates (lat-longs) of the image where I want it to be overlaid on the map.

I tried to place it using the google map tiles methodology. For it to be displayed as tile I named it "image_name_zoom_x_y.png". So when you select a specific zoom level ( I used 18 ) the image is displayed on a tile but it is displayed on wrong location (tile).

How to match the tile's x, y co-ordinates with the image's latitude and longitude so that I would be able to place the image on the correct location?

This is where I got so far:

const TILE_URL = 'xyz.com/orthoImage_{z}_{x}_{y}.png';

const imageMapType = new google.maps.ImageMapType({
    getTileUrl: function (coord, zoom) {
        console.log(coord);
        const url = TILE_URL
            .replace('{z}', zoom)
            .replace('{x}', coord.x)
            .replace('{y}', coord.y);
        console.log('url', url);
        return url;
    },
    tileSize: new google.maps.Size(256, 256),
    minZoom: 1,
    maxZoom: 20
});
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I think you should look at this , this is something you probably need

https://developers.google.com/maps/documentation/javascript/groundoverlays#introduction

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!