A
A
artekha2016-07-20 14:47:24
Google
artekha, 2016-07-20 14:47:24

How to customize fullscreen button in google maps?

I need to customize the map control buttons. I did the Zoom in and Zoom out, now I need to customize the Expand button to full screen.
I need a method that will reset the control from the standard fullscreen button to the one I created.
Here's what I used for the zoomIn/zoomOut buttons:

google.maps.event.addDomListener(controlUIzoomIn, 'click', function() {
    map.setZoom(map.getZoom()+1)
});
google.maps.event.addDomListener(controlUIzoomOut, 'click', function() {
    map.setZoom(map.getZoom()-1)
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2016-07-20
@streetflush

https://gist.github.com/lou/1550454

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question