Created
August 27, 2017 01:16
-
-
Save hernandezalek/db2cd1a0628ad745f7ba164a8abc32e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
handler = Gmaps.build('Google'); | |
handler.buildMap({ provider: {}, internal: {id: 'map'}}, function(){ | |
markers = handler.addMarkers(<%=raw @hash.to_json %>); | |
handler.bounds.extendWith(markers); | |
handler.fitMapToBounds(); | |
handler.getMap().setZoom(16); | |
gestureHandling: 'greedy' // He intentado con handler.gestureHandling: 'greedy'/'none' pero sin resultado | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment