Visual to zoom in/out using Google Maps API v3

Asked

Viewed 201 times

0

I’m using the Google Maps v3 API but one of the effects I see on the Google page I’m unable to reproduce.

This effect is the Visual help to zoom in/out, when you zoom in to the Google Maps page 4 animated red corners appear (closing or opening depending on whether the zoom is in or out) but by the API this effect does not appear.

How to make it available?

1 answer

1

If this effect is not available in the API, and you are sure you have checked even in the latest versions to see if it is some new functionality, I will explain a way to do this.

  1. Add an event that is triggered when there is zoomIn and zoomOut
  2. Detect the current mouse position on the screen
  3. Show an animated gif, which would have exactly the same functionality that Google offers, already with the difference of images for zoomIn and zoomOut

There may be other ways to do this, but the way I’m talking, if not made available via API, will certainly work.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.