From ad25bc56d3df74c6f49656ee38dfa899974a6313 Mon Sep 17 00:00:00 2001 From: fustyles <34397289+fustyles@users.noreply.github.com> Date: Mon, 30 Dec 2024 11:24:08 +0800 Subject: [PATCH] Update javascript.js --- googlemap_20241226/blockly/javascript.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/googlemap_20241226/blockly/javascript.js b/googlemap_20241226/blockly/javascript.js index ded5395417..13963e372e 100644 --- a/googlemap_20241226/blockly/javascript.js +++ b/googlemap_20241226/blockly/javascript.js @@ -81,6 +81,9 @@ Blockly.JavaScript['googlemap_initial'] = function (block) { ' else if (type=="title") {\n'+ ' mapMarkers[i][2].title = newContent;\n'+ ' }\n'+ + ' else if (type=="zindex") {\n'+ + ' mapMarkers[i][2].zIndex = Number(newContent);\n'+ + ' }\n'+ ' else if (type=="icon") {\n'+ ' const flagImg = document.createElement("img");\n'+ ' flagImg.src = newContent;\n'+ @@ -191,6 +194,8 @@ Blockly.JavaScript['googlemap_point_function'] = function (block) { 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=="open_content")