Skip to content

Commit ad2512f

Browse files
author
Jason Fox
committed
Remove jQuery call
1 parent cfff48f commit ad2512f

File tree

1 file changed

+1
-7
lines changed
  • finding-the-nearest-marker/js

1 file changed

+1
-7
lines changed

finding-the-nearest-marker/js/app.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)