File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
finding-the-nearest-marker/js Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -71,13 +71,7 @@ var svgMarkup = '<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg">
7171 '<text x="12" y="18" font-size="12pt" font-family="Arial" font-weight="bold" ' +
7272 'text-anchor="middle" fill="white">${REPLACE}</text></svg>' ;
7373
74- //
75- // For convenience we have included the jQuery library to iterate through the array
76- // For more information see: http://api.jquery.com/jQuery.each/
77- //
78- // The jQuery library is available under an MIT license https://jquery.org/license/
79- //
80- $ . each ( coords , function ( index , value ) {
74+ coords . forEach ( function ( value , index ) {
8175 var myIcon = new H . map . Icon ( svgMarkup . replace ( '${REPLACE}' , index + 1 ) ) ,
8276 marker = new H . map . Marker ( value , { icon : myIcon } ) ;
8377 // add custom data to the marker
You can’t perform that action at this time.
0 commit comments