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 8888995
In Process

The Archive Base Latest Questions

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

I have a custom map with custom map tiles I’ve created for a website.

  • 0

I have a custom map with custom map tiles I’ve created for a website. Whenever I update these map tiles and deploy them to the site, I need my users’s to clear their cache of the old tiles so that they download the new tiles instead.

Since the map tiles are loaded by JavaScript, you can’t simply force your users to get new files with a SHIFT-Refresh.

The only method I can think of so far is to change the folder name that the tiles are loaded from. Something like:

tiles-20121125  <--- todays date

So every time the tiles are updated, I simply change the folder name to a new name, forcing the visitors to download new tiles.

Is there a better way? Something built into the Google Maps v3 API maybe?

  • 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-14T22:09:13+00:00Added an answer on June 14, 2026 at 10:09 pm

    Browsers cache the image data based on the requested url, which is as well as the ajax cache.
    Google Maps API doesn’t offer any methods to do that.

    So the most easiest way, you can append the version as query parameter.

    function getTileUrl(point, number) {
      return "http://your.server.com/tiles/" + point.x + "_" + point.y + ".png?v=20121125"
    }
    

    Then Google Maps API loads image data from the URL.
    The mechanism to load the image might be:

    var img = new Image();
    img.src = tile_url;
    

    Something like that.
    (Actually Google Maps API uses canvas tag instead of Image recently)

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

Sidebar

Related Questions

I have custom map image with specific height and width. i need to map
I have a map custom view that inherit from MKOverlayPathView. I need this custom
I'm trying to add a ground overlay to a custom map and have created
I'm writing a custom overlay for a Google Map. I have a serious of
i have custom cell with 2 buttons(the function of these buttons is just to
I have a custom google map. It seems very simple. <!DOCTYPE html PUBLIC -//W3C//DTD
I have placed a custom map png on google map. I have removed everything
I am attempting to create a custom vector based map using tiles, much like
I have followed this tutorial: http://www.shawngrimes.me/2011/04/custom-map-pins-for-mapkit/#comment-193 but I can't add a title and description
I have a Google map I have created to highlight the location of several

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.