Skip to content

Commit

Permalink
Update javascript.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Dec 30, 2024
1 parent 0ecd3d4 commit 6b19176
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions googlemap_20241226/blockly/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,12 @@ Blockly.JavaScript['googlemap_initial'] = function (block) {
' pMapId.setZoom(Number(val));\n'+
'}\n'+
'function headingMap(pMapId, val) {\n'+
' pMapId.setPov(\n'+
' {\n'+
' heading: Number(val),\n'+
' pitch: pMapId.getPov().pitch,\n'+
' }\n'+
' );\n'+
' let pov: { heading: Number(val), pitch: pMapId.getPov().pitch },\n'+
' pMapId.setPov(pov);\n'+
'}\n'+
'function pitchMap(pMapId, val) {\n'+
' pMapId.setPov(\n'+
' {\n'+
' heading: pMapId.getPov().heading,\n'+
' pitch: Number(val),\n'+
' }\n'+
' );\n'+
' let pov: { heading: pMapId.getPov().heading, pitch: Number(val) },\n'+
' pMapId.setPov(pov);\n'+
'}\n'+
'function clearMap(pMapId) {\n'+
' for (var i=0;i<mapMarkers.length;i++) {\n'+
Expand Down

0 comments on commit 6b19176

Please sign in to comment.