From 9090f95380a881c5b90f59b3e27c43e531d7d7f8 Mon Sep 17 00:00:00 2001 From: fustyles <34397289+fustyles@users.noreply.github.com> Date: Fri, 27 Dec 2024 22:42:46 +0800 Subject: [PATCH] Update blocks.js --- SpBlocklyJS/googlemap_20241226/blocks.js | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/SpBlocklyJS/googlemap_20241226/blocks.js b/SpBlocklyJS/googlemap_20241226/blocks.js index 15fd81e55b..3c7b4872e8 100644 --- a/SpBlocklyJS/googlemap_20241226/blocks.js +++ b/SpBlocklyJS/googlemap_20241226/blocks.js @@ -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) @@ -46,7 +44,6 @@ Blockly.Blocks['googlemap_addmap'] = { } }; - Blockly.Blocks['googlemap_addpoint'] = { init: function () { this.appendDummyInput()