Skip to content

Commit

Permalink
Update blocks.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Dec 30, 2024
1 parent 7a78c28 commit 08a9666
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions SpBlocklyJS/googlemap_20241226/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,12 @@ Blockly.Blocks['googlemap_map_center'] = {
this.appendValueInput("divid")
.setAlign(Blockly.ALIGN_RIGHT)
.setCheck("String")
.appendField(Blockly.Msg["GOOGLEMAP_DIVID"]);
.appendField(Blockly.Msg["GOOGLEMAP_DIVID"]);
this.appendDummyInput()
.appendField(new Blockly.FieldDropdown([
[Blockly.Msg["GOOGLEMAP_MAP_CENTER"],"center"],
[Blockly.Msg["GOOGLEMAP_MAP_POSITION"],"position"]
]), "type");
this.appendValueInput("latitude")
.setCheck("Number")
.setAlign(Blockly.ALIGN_RIGHT)
Expand All @@ -211,7 +216,7 @@ Blockly.Blocks['googlemap_map_function'] = {
.setCheck("String")
.appendField(Blockly.Msg["GOOGLEMAP_DIVID"]);
this.appendDummyInput()
.appendField(new Blockly.FieldDropdown([
.appendField(new Blockly.FieldDropdown([
[Blockly.Msg["GOOGLEMAP_MAP_UPDATE_ZOOM"],"zoom"],
[Blockly.Msg["GOOGLEMAP_POINT_CLEAR"],"clear"]
], this.validate), "func");
Expand Down

0 comments on commit 08a9666

Please sign in to comment.