Note that there are some explanatory texts on larger screens.

plurals
  1. POPins not showing up in Chrome Google Maps Api V3
    primarykey
    data
    text
    <p>For some reason my pins aren't showing in the chrome browser. They do in safari, opera, firefox etc etc but not in chrome.</p> <p>I get an undefined typeerror in the google api lib, so can't do anything with it.</p> <p>This is my code where i add my google map:</p> <pre><code>var map; function loadStores(){ google.maps.visualRefresh = true; if(typeof google === 'object' &amp;&amp; typeof google.maps === 'object'){ try{ var mapoptions = { center: new google.maps.LatLng(41.492537, -99.901813), zoom: 5, mapTypeId: google.maps.MapTypeId.ROADMAP, mapTypeControl: false, zoomControl: false, streetViewControl: false, panControl: false }; map = new google.maps.Map(document.getElementById("store_map"), mapoptions); google.maps.event.trigger(map, 'resize'); addStores(); }catch(e){ console.log(e); } } } </code></pre> <p>This is my code to add the stores(pins) to the map:</p> <pre><code>if(typeof google === 'object' &amp;&amp; typeof google.maps === 'object'){ try{ $.ajax({ type:"GET", url: api_url + '/locations', success: function(data){ var stores = $.parseJSON(data); for(var i=0; i&lt;stores.length; i++){ console.log("hallo"); var ii = i; var image = new google.maps.MarkerImage('images/store/pin_@2x.png', null, null, null, new google.maps.Size(32,50)); var myLatLng = new google.maps.LatLng(stores[ii].latitude, stores[ii].longitude); var marker = new google.maps.Marker({ position: myLatLng, map:map, icon: image, tel: stores[ii].tel, state: stores[ii].state, street: stores[ii].street }); google.maps.event.addListener(marker, 'click', function(){ opPinGeklikt(event, this); }); } },error:function(){ console.log(arguments); } }); }catch(e){ console.log(e); } } </code></pre> <p>Any toughts would be great.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload