HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Click a marker to zoom - binding on google map events.
We still use paper map again using London.
Point users to achieve when the marker is clicked zoom function (zoom map marker is clicked binding event).
Code is as follows:
Use addListener () event handler to register an event listener. The method uses an object, an event to listen for, when a specified event occurs will be called.
We add an event handler to the map to change the 'center' property, use the following code after 3 seconds center_changed event will be marked shift center:
Click a marker to display some text in the message window:
Implementation of a window when the user clicks on the map
Users click on the map to a position placeMarker () function on the designated location to place a marker, and pop-up message window: