Created
September 27, 2016 17:14
-
-
Save gurkan0791/2c1facbb9733b4b27e08f60606c4d7c8 to your computer and use it in GitHub Desktop.
Revisions
-
gurkan0791 created this gist
Sep 27, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ //JSTL combined Javascript var markers = [ <c:forEach var="row" items="${result.rows}"> ['<c:out value="${row.aciklama}" />', <c:out value="${row.KONUME}" />, //double without apostrophe <c:out value="${row.KONUMB}" />, <c:out value="${row.EVID}" />, '<c:out value="${row.aptadi}" />', '<c:out value="${row.mahalle}" />', '<c:out value="${row.sokak}" />', '<c:out value="${row.durumu}" />', '<c:out value="${row.metrekare}" />', '<c:out value="${row.fiyat}" />', '<c:out value="${row.odasayisi}" />'], </c:forEach> ]; // using array create makers google maps api for( i = 0; i < markers.length; i++ ) { var position = new google.maps.LatLng(markers[i][1],markers[i][2]); marker = new google.maps.Marker({ position: position, map: map, title: markers[i][0], icon:image }); google.maps.event.addListener(marker, 'click', (function(marker, i) { ...} } //for end