Skip to content

Instantly share code, notes, and snippets.

@hernandezalek
Created August 27, 2017 01:16
Show Gist options
  • Save hernandezalek/db2cd1a0628ad745f7ba164a8abc32e5 to your computer and use it in GitHub Desktop.
Save hernandezalek/db2cd1a0628ad745f7ba164a8abc32e5 to your computer and use it in GitHub Desktop.
<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