Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9197855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:09:48+00:00 2026-06-17T22:09:48+00:00

I need to get the tile number (x, y, z) for a clicked marker

  • 0

I need to get the tile number (x, y, z) for a clicked marker using the Google Maps API v3.

There is little documentation available which discusses this. How would I even start?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:09:49+00:00Added an answer on June 17, 2026 at 10:09 pm
    1. Get the marker lat lng which is a property of to the marker click event object.
    2. Use the map projection (map.getProjection()) to convert to world coordinates (also known as point plane).
    3. Using the current map zoom level (which is your ‘z’ coordinate), calculate the pixel coordinates from the world coordinates:
      pixelCoordinateX = parseInt(worldCoordinateX * Math.pow(2, zoom), 10). Same concept for the ‘y’ coordinate.
    4. Divide the pixelCoordinate by the tile size (256) and take the integer portion. This is the tile number.
      x = parseInt(pixelCoordinateX / 256, 10).

    See the Map Types concepts in the Google Maps API Reference.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an existing website which currently uses v2 of the google maps api
I need get the id of an images which is place inside a datatemplate..
I need to get the contents from this URL http://google.fr/ok in a NSString can
I am grabbing maps from bing using their API: http://msdn.microsoft.com/en-us/library/ff701724.aspx The largest tile they
I need get browser navigator handling example. I'm using example: Imagine for many tab
I am creating a platform game in JavaScript using canvas which is entirely tile-based.
Just need get some vals located in application.ini(main ini) in the Controller plugin I
I need get all items these have no categories int? categoryId = null; var
I have linq request. I need get item.Title in select. how do this? var
I have two tables with a weak relation. I need get a text value

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.