ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2017 www.aspforums.com. All rights reserved.Error: Google map Content window on marker shows same result for each marker<p><code>Hi <a class="username" rel="bakhtawar"> bakhtawar</a>,</code></p> <p><code>Please share what the result returns.</code></p>http://www.aspforums.net/Threads/141596/Error-Google-map-Content-window-on-marker-shows-same-result-for-each-marker/http://www.aspforums.net/Threads/141596/Error-Google-map-Content-window-on-marker-shows-same-result-for-each-marker/Fri, 23 Sep 2016 04:27:37 GMTError: Google map Content window on marker shows same result for each marker<p>ok now i done this .. i done with all markers with content window are display on page load and this is also i want and i done this.</p> <p>this is what i try </p> <pre class="brush: js">function (result) { &nbsp;&nbsp;&nbsp; var d = JSON.parse(result.d).response; &nbsp;&nbsp;&nbsp; console.log(JSON.parse(result.d).response); &nbsp;&nbsp;&nbsp; $(&#34;#tabledata&#34;).empty(); &nbsp;&nbsp;&nbsp; if (d.length &gt; 0) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(&#34;#tabledata&#34;).append(&#34;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;No&lt;/th&gt;&lt;th&gt;Date&lt;/th&gt;&lt;th&gt;Status&lt;/th&gt;&lt;th&gt;Longitude&lt;/th&gt;&lt;th&gt;Latitude&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&#34;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for (var i = 0; i &lt; d.length - 1; i++) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (d[i] !== null) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(&#34;#tabledata&#34;).append(&#34;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&#34; &nbsp;&nbs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d[i][3]; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp; else { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $(&#34;#tabledata&#34;).hide(); &nbsp;&nbsp;&nbsp; } &nbsp;&nbsp;&nbsp; alert(d.length); &nbsp;&nbsp;&nbsp; var map; &nbsp;&nbsp;&nbsp; var latlng = new google.maps.LatLng(21.0895898, 69.0998546); &nbsp;&nbsp;&nbsp; var myOptions = { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; zoom: 8, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; center: latlng, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mapTypeId: google.maps.MapTypeId.ROADMAP &nbsp;&nbsp;&nbsp; }; &nbsp;&nbsp;&nbsp; map = new google.maps.Map(document.getElementById(&#34;map_canvas&#34;), myOptions); &nbsp;&nbsp;&nbsp; for (i = 0; i &lt; d.length - 1; i++) { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var data = d[i] &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var myLatlng = new google.maps.LatLng(d[i][5], d[i][4]); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var marker = new google.maps.Marker({ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; position: myLatlng, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; icon: &#34;/images/car.png&#34;, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map: map, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; title: &#39;Click me&#39; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var infowindow = new google.maps.InfoWindow({ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; content: &#39;No:&#39; + d[i][0] + &#39;&lt;br&gt;Status:&#39; + d[i][2] + &#39;&lt;br&gt;Lat:&#39; + d[i][4] + &#39;Long:&#39; + d[i][3] &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; google.maps.event.addListener(marker, &#39;mouseclick&#39;, function () { &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; infowindow.open(map, marker, data); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; infowindow.open(map, marker, data); &nbsp;&nbsp;&nbsp; } } </pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/141596/Error-Google-map-Content-window-on-marker-shows-same-result-for-each-marker/http://www.aspforums.net/Threads/141596/Error-Google-map-Content-window-on-marker-shows-same-result-for-each-marker/Fri, 23 Sep 2016 23:31:29 GMTError: Google map Content window on marker shows same result for each marker<p>Hi <a class="username" rel="bakhtawar">bakhtawar</a>,</p> <p>As you have solved mark your reply as answer.</p>http://www.aspforums.net/Threads/141596/Error-Google-map-Content-window-on-marker-shows-same-result-for-each-marker/http://www.aspforums.net/Threads/141596/Error-Google-map-Content-window-on-marker-shows-same-result-for-each-marker/Mon, 26 Sep 2016 08:18:11 GMT