Skip to content

Commit 266bf74

Browse files
authored
Merge pull request #2139 from hansthen/issue_2138
Issue 2138: Fix awesome markers
2 parents 45ab9a9 + 7ed25e1 commit 266bf74

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/test_streamlit_folium.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ jobs:
3838
npm install
3939
npm run build
4040
41-
- name: Install streamlit-folium
41+
- name: Install streamlit_folium dev dependencies
4242
shell: bash -l {0}
4343
run: |
44-
cd streamlit_folium
45-
pip install -e .
44+
conda install --file streamlit_folium/tests/requirements.txt
4645
47-
- name: Install streamlit_folium dev dependencies
46+
- name: Install streamlit-folium
4847
shell: bash -l {0}
4948
run: |
50-
pip install -r streamlit_folium/tests/requirements.txt
49+
cd streamlit_folium
50+
pip install -e .
5151
5252
- name: Install playwright dependencies
5353
shell: bash -l {0}

folium/features.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,9 +570,9 @@ class GeoJson(Layer):
570570
571571
{%- if this.marker %}
572572
function {{ this.get_name() }}_pointToLayer(feature, latlng) {
573-
var opts = {{ this.marker.options | tojson | safe }};
573+
var opts = {{ this.marker.options | tojavascript }};
574574
{% if this.marker._name == 'Marker' and this.marker.icon %}
575-
const iconOptions = {{ this.marker.icon.options | tojson | safe }}
575+
const iconOptions = {{ this.marker.icon.options | tojavascript }}
576576
const iconRootAlias = L{%- if this.marker.icon._name == "Icon" %}.AwesomeMarkers{%- endif %}
577577
opts.icon = new iconRootAlias.{{ this.marker.icon._name }}(iconOptions)
578578
{% endif %}

0 commit comments

Comments
 (0)