diff --git a/.github/workflows/test_streamlit_folium.yml b/.github/workflows/test_streamlit_folium.yml index a1fd12b882..206279fd44 100644 --- a/.github/workflows/test_streamlit_folium.yml +++ b/.github/workflows/test_streamlit_folium.yml @@ -38,16 +38,16 @@ jobs: npm install npm run build - - name: Install streamlit-folium + - name: Install streamlit_folium dev dependencies shell: bash -l {0} run: | - cd streamlit_folium - pip install -e . + conda install --file streamlit_folium/tests/requirements.txt - - name: Install streamlit_folium dev dependencies + - name: Install streamlit-folium shell: bash -l {0} run: | - pip install -r streamlit_folium/tests/requirements.txt + cd streamlit_folium + pip install -e . - name: Install playwright dependencies shell: bash -l {0} diff --git a/folium/features.py b/folium/features.py index 1c18f426db..8019bb9137 100644 --- a/folium/features.py +++ b/folium/features.py @@ -570,9 +570,9 @@ class GeoJson(Layer): {%- if this.marker %} function {{ this.get_name() }}_pointToLayer(feature, latlng) { - var opts = {{ this.marker.options | tojson | safe }}; + var opts = {{ this.marker.options | tojavascript }}; {% if this.marker._name == 'Marker' and this.marker.icon %} - const iconOptions = {{ this.marker.icon.options | tojson | safe }} + const iconOptions = {{ this.marker.icon.options | tojavascript }} const iconRootAlias = L{%- if this.marker.icon._name == "Icon" %}.AwesomeMarkers{%- endif %} opts.icon = new iconRootAlias.{{ this.marker.icon._name }}(iconOptions) {% endif %}