Have you checked out our update to the Static Map API?
It has great new features: retina support, banners, arcs, revamped icons, and much more!
Get up to speed with the Getting Started Guide or switch now with our handy Migration Guide.
For any Static Map request with custom icons, the application caches every custom icon for 60 minutes. The Flush Icon service forces the release of the custom icon from the application's cache in case you want to refresh the icon within this time interval.
https://www.mapquestapi.com/staticmap/v4/flushicon
Authentication | Yes (Requires Key) |
---|---|
Rate Limited | Yes |
Request Parameter | Description | Required? |
---|---|---|
key String |
The API Key, which is needed to make requests to MapQuest services. | Yes |
uri String |
The http uri of the icon to be flushed | Yes |
In order to demonstrate the Flush Icon service, let us say that we generated a static map with a sample custom icon.
xis=developer.mapquest.com/content/doc/images/money_sign.jpg
Now, below 'flushicon' request will forcefully delete the icon from cache before the expiration of icon's time to live. Subsequent request for the icon will pull the latest image.
GET
https://www.mapquestapi.com/staticmap/v4/flushicon?key=KEY&uri=developer.mapquest.com/api-docs/doc/images/money_sign.jpg