fix gmap display and center position on jquery tabs

Error message

  • Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; GeSHi has a deprecated constructor in require_once() (line 818 of /home/xenyomed/public_html/sites/all/modules/libraries/libraries.module).
  • Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; ctools_context has a deprecated constructor in require_once() (line 127 of /home/xenyomed/public_html/sites/all/modules/ctools/ctools.module).
  • Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; ctools_context_required has a deprecated constructor in require_once() (line 127 of /home/xenyomed/public_html/sites/all/modules/ctools/ctools.module).
  • Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; ctools_context_optional has a deprecated constructor in require_once() (line 127 of /home/xenyomed/public_html/sites/all/modules/ctools/ctools.module).
  • Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in _menu_load_objects() (line 579 of /home/xenyomed/public_html/includes/menu.inc).

WE HAVE MOVED!

Please visit our new Drupal Website at https://www.xenyo.com.

        $(".ui-tabs-anchor").live("click", function() {
          $("div.gmap-gmap").each(function(i,e){
          var id = $(this).attr("id");
          var idArr = id.split("-");
          var mapId = idArr[1];
          var mapObj = Drupal.gmap.getMap(mapId);
          google.maps.event.trigger(mapObj.map,"resize");
          var myLatLng = new google.maps.LatLng(mapObj.map.markers[0].position.$a, mapObj.map.markers[0].position.ab);
          mapObj.map.setCenter(myLatLng);
          })
        })
Help Share this Article