Skip to content

Commit

Permalink
Update javascript.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Dec 30, 2024
1 parent 023270e commit ad25bc5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions googlemap_20241226/blockly/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'+
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit ad25bc5

Please sign in to comment.