Skip to content

Commit

Permalink
Update javascript.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Jan 1, 2025
1 parent cd2a07f commit ffd484f
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions SpBlocklyJS/googlemap_20241226/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,35 +118,8 @@ Blockly.JavaScript['googlemap_point_function'] = function (block) {
var pointid = Blockly.JavaScript.valueToCode(block, 'pointid', Blockly.JavaScript.ORDER_ATOMIC)||"";
var func = block.getFieldValue('func');
var content = Blockly.JavaScript.valueToCode(block, 'content', Blockly.JavaScript.ORDER_ATOMIC)||"";
if (func=="update_content")
var code = 'updateMarkerContent('+pointid+', '+content+', "content");\n';
else if (func=="update_headercontent")
var code = 'updateMarkerContent('+pointid+', '+content+', "headercontent");\n';
else if (func=="update_latitude")
var code = 'updateMarkerContent('+pointid+', '+content+', "latitude");\n';
else if (func=="update_longitude")
var code = 'updateMarkerContent('+pointid+', '+content+', "longitude");\n';
else if (func=="update_position")
var code = 'updateMarkerContent('+pointid+', '+content+', "position");\n';
else if (func=="update_title")
var code = 'updateMarkerContent('+pointid+', '+content+', "title");\n';
else if (func=="update_zindex")
var code = 'updateMarkerContent('+pointid+', '+content+', "zindex");\n';
else if (func=="update_icon")
var code = 'updateMarkerContent('+pointid+', '+content+', "icon");\n';
else if (func=="update_gmpDraggable")
var code = 'updateMarkerContent('+pointid+', '+content+', "gmpDraggable");\n';
else if (func=="update_gmpClickable")
var code = 'updateMarkerContent('+pointid+', '+content+', "gmpClickable");\n';
else if (func=="open_content")
var code = 'updateMarkerContent('+pointid+', "", "openContent");\n';
else if (func=="close_content")
var code = 'updateMarkerContent('+pointid+', "", "closeContent");\n';
else if (func=="clear")
var code = 'updateMarkerContent('+pointid+', "", "clear");\n';
else
var code = '';

var code = 'updateMarkerContent('+pointid+', '+content+', "'+func+'");\n';
return code;
};

Expand Down

0 comments on commit ffd484f

Please sign in to comment.