Thursday 15 September 2011

javascript - Simulate click of an element -


Keep a custom map (), and it has a zoom button. There are no inline onclick events in this zoom.

Let me have a div (outside of the map) and when it is clicked & gt;

but it has no effect.

The zoom effect is of complex type, and I do not know which function to zoom in to find this source. The only thing that needs to be clicked is to do something like a shortcut on the zoom button.

Any suggestions?

methods have been created in the API

OpenLair's map object is Map

The name is stored in the global variable:

  map.zoomIn ();   

To zoom out:

  map.zoomOut ();    

No comments:

Post a Comment