Skip to content

Commit 482933f

Browse files
TheNcarRiverfount
authored andcommitted
added support for unclickable circles
1 parent e7cbc13 commit 482933f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

flask_googlemaps/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ def build_circle_dict(
342342
stroke_weight=2,
343343
fill_color="#FF0000",
344344
fill_opacity=0.3,
345+
clickable=True
345346
):
346347
""" Set a dictionary with the javascript class Circle parameters
347348
@@ -371,6 +372,7 @@ def build_circle_dict(
371372
"fill_opacity": fill_opacity,
372373
"center": {"lat": center_lat, "lng": center_lng},
373374
"radius": radius,
375+
"clickable": clickable
374376
}
375377

376378
return circle

flask_googlemaps/templates/googlemaps/gmapjs.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@
130130
lat: raw_circles[i].center.lat,
131131
lng: raw_circles[i].center.lng,
132132
},
133-
radius: raw_circles[i].radius
133+
radius: raw_circles[i].radius,
134+
clickable : raw_circles[i].clickable
134135
});
135136

136137
if(raw_circles[i].infobox)

0 commit comments

Comments
 (0)