Categorieën
Lokation

CONTACT

0

0484 91 51 51

info@marokkaansegids.be

Van Praetstraat 100, 2660 Antwerpen

jQuery(document).ready(function($) { // The div object that will contain the map var mapdiv = jQuery("#responsive_map_258177331"); var publisherid = ""; // Create the map in the div mapdiv.gMapResp({ maptype: google.maps.MapTypeId.ROADMAP, log: false, zoom: 15, markers: [{ latitude:51.1594057, longitude:4.3381285, key: '1',html:"REHBER.BE", popup: false, flat: true, icon: { image: '../wp-content/uploads/2014/10/map-icon-web.png' }}], panControl: false, zoomControl: true, draggable: true, scrollwheel: true, mapTypeControl: true, scaleControl: false, cheapjerseys1 streetViewControl: true, overviewMapControl: true, styles: [{"stylers":[{"featureType":"all"}]}], latitude: null, longitude: null, onComplete: function() { if(mapdiv.is(':hidden')) { // map is displayed in tabs $.each(['show'], function (i, ev) { var el = $.fn[ev]; $.fn[ev]= function () { this.trigger(ev); el.apply(this, arguments); jQuery('.responsive-map').each(function(){ if (jQuery(this).data('gmap')) { // Fix maps on tabs jQuery(this).gMapResp('fixAfterResize'); // Then trigger the click event for each marker to avoid tabs issues var popup = false; var markers = jQuery(this).data('gmap').markers; if (popup) { console.log(popup); for (var i = 0; i < markers.length; i++) { google.maps.event.trigger( markers[i], 'click'); } } } }); }; }); } // Show ad if publisher id given if (publisherid.trim() != "") { var gmap = mapdiv.data('gmap').gmap; var adUnitDiv = document.createElement('div'); var adUnitOptions = { format: google.maps.adsense.AdFormat.HALF_BANNER, position: google.maps.ControlPosition.RIGHT_BOTTOM, backgroundColor: '#ffffff', borderColor: '#666666', titleColor: '#333333', textColor: '#666666', urlColor: '#999999', publisherId: publisherid, map: gmap, visible: true }; var adUnit = new google.maps.adsense.AdUnit(adUnitDiv, adUnitOptions);} } }); }); // If the refresh parameter is set to true, resize the map when window is resized window.onresize = function() { jQuery('.responsive-map').each(function(i, obj) { data = jQuery(this).data('gmap'); if (data) { var gmap = jQuery(this).data('gmap').gmap; google.maps.event.trigger(gmap, 'resize'); jQuery(this).gMapResp('fixAfterResize'); } }); };

Naam(*)

E-Mail (*)

Onderwerp

Uw vraag

 

BU SAYFAYI PAYLAŞ

İÇERİĞİ OLUŞTURAN

YORUM YAZ