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 27, 2024
1 parent d64d2e2 commit 9090f95
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions SpBlocklyJS/googlemap_20241226/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,24 @@ Blockly.Blocks['googlemap_initial'] = {
.setAlign(Blockly.ALIGN_RIGHT)
.setCheck("String")
.appendField(Blockly.Msg["GOOGLEMAP_APIKEY"]);
this.appendDummyInput()
.appendField(Blockly.Msg["GOOGLEMAP_ADDMAP"]);
this.appendStatementInput("statement");
this.setInputsInline(true);
this.setPreviousStatement(true);
this.setNextStatement(true);
this.setColour(210);
this.setHelpUrl("https://developers.google.com/maps/documentation/javascript?hl=zh-tw");
this.appendStatementInput("statement")
.appendField(Blockly.Msg["GOOGLEMAP_ADDMAP"]);
this.setInputsInline(true);
this.setPreviousStatement(true);
this.setNextStatement(true);
this.setColour(210);
this.setHelpUrl("https://developers.google.com/maps/documentation/javascript?hl=zh-tw");
}
};

Blockly.Blocks['googlemap_addmap'] = {
init: function () {
this.appendDummyInput()
.appendField(Blockly.Msg["GOOGLEMAP"])
.appendField(Blockly.Msg["GOOGLEMAP_ADDMAP"]);
this.appendDummyInput()
.appendField(Blockly.Msg["GOOGLEMAP"]);
this.appendValueInput("divid")
.setAlign(Blockly.ALIGN_RIGHT)
.setCheck("String")
.appendField(Blockly.Msg["GOOGLEMAP_DIVID"]);
.appendField(Blockly.Msg["GOOGLEMAP_DIVID"]);
this.appendValueInput("latitude")
.setCheck("Number")
.setAlign(Blockly.ALIGN_RIGHT)
Expand All @@ -46,7 +44,6 @@ Blockly.Blocks['googlemap_addmap'] = {
}
};


Blockly.Blocks['googlemap_addpoint'] = {
init: function () {
this.appendDummyInput()
Expand Down

0 comments on commit 9090f95

Please sign in to comment.