Skip to content

Commit

Permalink
Update googlemap.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Dec 30, 2024
1 parent 812b920 commit 2b77b47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SpBlocklyJS/googlemap_20241226/googlemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ function updateMarkerContent(pID, newContent, type) {
if ("point_"+pID==mapMarkers[i][0]) {
if (type=="content") {
mapMarkers[i][3].setContent(newContent);
}
}
else if (type=="headercontent") {
mapMarkers[i][3].setHeaderContent(newContent);
}
else if (type === "latitude") {
mapMarkers[i][4].lat = Number(newContent);
mapMarkers[i][2].position = mapMarkers[i][4];
Expand Down

0 comments on commit 2b77b47

Please sign in to comment.