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 6f4b0ba commit 7a78c28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SpBlocklyJS/googlemap_20241226/googlemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ function centerMap(pMapId, lat, lng) {
pMapId.setCenter(newCenter);
}

function positionMap(pMapId, lat, lng) {
const newCenter = new google.maps.LatLng(Number(lat), Number(lng));
pMapId.setPosition(newCenter);
}

function zoomMap(pMapId, zoom) {
pMapId.setZoom(Number(zoom));
}
Expand Down

0 comments on commit 7a78c28

Please sign in to comment.