Note that there are some explanatory texts on larger screens.

plurals
  1. POI can't add multiple markers in Google Map API v3
    primarykey
    data
    text
    <p>Hi, </p> <p>that's normal code at Google </p> <pre><code>var map; function initialize() { var latLng = new google.maps.LatLng(41.079120183660486, 28.994637246032653); var mapOptions = { center: latLng, zoom: 8, mapTypeId : google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions); var marker = new google.maps.Marker({ position: map.getCenter(), map: map, }); google.maps.event.addListener(map, 'click', function (event) { //map.setZoom(9); //map.setCenter(marker.getPosition()); }); }google.maps.event.addDomListener(window, 'load', initialize); </code></pre> <p>and I want to multiply marker from my DB and I can't do it. I searched in site but always result is gray map.</p> <p>And my code is:</p> <pre><code>&lt;script type="text/javascript"&gt; var map; var latLng; function initialize() { var mapOptions = { //center: latLng, zoom: 8, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions); var markers = []; @foreach (var item in Model) { @:markers.push("@item.map") // item.map content coming like this : 41.079120183660486,28.994637246032653 } for (var i = 0; i &lt; markers.length; i++) { var marker = new google.maps.Marker({ position: latLng, map: map, }); } //google.maps.event.addListener(map, 'click', function (event) { // //map.setZoom(9); // map.setCenter(marker.getPosition()); // //placeMarker(event.latLng); //}); } google.maps.event.addDomListener(window, 'load', initialize); </code></pre> <p></p> <p>I can't add markers. I think missing a lot of things? I really need your opinion. Thanks </p>
    singulars
    1. This table or related slice is empty.
    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