Skip to content

Commit

Permalink
Update googlemap.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Jan 1, 2025
1 parent d7b5db3 commit d6b7dc4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions SpBlocklyJS/googlemap_20241226/googlemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ function addMapPoint(pID, pMapId, pLat, pLng, pTitle, pContent) {
mapMarkers.push(["point_"+pID, pMapId, marker, infoWindow, markerData.position]);
}

function getMarker(pID) {
for (var i=0;i<mapMarkers.length;i++) {
if ("point_"+pID==mapMarkers[i][0]) {
return mapMarkers[i][2];
}
}
return null;
}

function clearMarker(pID) {
for (var i=0;i<mapMarkers.length;i++) {
if ("point_"+pID==mapMarkers[i][0]) {
Expand Down

0 comments on commit d6b7dc4

Please sign in to comment.