Download GDPR Compliance WordPress Plugin in just $9 today.

hello,

I’m using the display_map shortcode to display multiple markers. I get a js error because the google.maps.LatLng function has no valid attributes.

this is the code I use:

[display_map address1="Juan Ramírez de Velasco 1287, Buenos Aires" address2="Defensa 713, Buenos Aires" address3="Perú 84, Buenos Aires" zoom=2]

this is what I get:

var infoWindows=[];google.load("maps","3.7",{"other_params" :"sensor=false&libraries=places,weather,panoramio&language=en"});google.setOnLoadCallback(initialize);function initialize(){var latlng=new google.maps.LatLng(,);var mapOptions={zoom: 2,scrollwheel:true,panControl:true,zoomControl:true,mapTypeControl:true,scaleControl:true,streetViewControl:true,overviewMapControl:true,overviewMapControlOptions:{opened:true},center: latlng,mapTypeId: google.maps.MapTypeId.ROADMAP};wgmpmap=new google.maps.Map(document.getElementById("wgmpmap"),mapOptions);marker0wgmpmap=new google.maps.Marker({map: wgmpmap,draggable:false,position: new google.maps.LatLng(,),title:"",clickable:false,icon:""});}function wgmp_closeAllInfoWindows(){for (var i=0;i<infoWindows.length;i++){ infoWindows[i].close();}infoWindows=[];}

I’m using WordPress 4.2.2

thanks.

You do not have permission to view answers

Please login or Register to Submit Answer