Last active
December 11, 2015 08:58
-
-
Save ifnull/4576872 to your computer and use it in GitHub Desktop.
Drupal GMaps
This file contains hidden or 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
// Get IDs | |
gmap_tool = jQuery('#tools .view-partners-map .gmap').attr('id').split('-')[1] | |
gmap_home = jQuery('#page-content .view-partners-map .gmap').attr('id').split('-')[1] | |
// Resize fix | |
google.maps.event.trigger(Drupal.gmap.getMap('auto2map').map, "resize") | |
// Add map styles | |
Drupal.gmap.getMap('auto2map').map.setOptions({styles: styles}); | |
// Remove controls | |
Drupal.gmap.getMap('auto2map').map.setOptions({mapTypeControl: false}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment