Skip to content

Commit 9d519cc

Browse files
Update README.md
1 parent 75ccac1 commit 9d519cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ address2 = AddressAutoHiddenField(map_id="unique_id_2")
195195
```
196196
# Troubleshooting
197197
* #### Usage of the plain field's value in javascript ( [Issue #21](https://github.com/Simon-the-Shark/django-mapbox-location-field/issues/21))
198-
In case of the plain field, the python representation of coordinates is a [tuple](https://www.w3schools.com/python/python_tuples.asp). And e.g Mapbox's requires a [javascript's array](https://www.w3schools.com/js/js_arrays.asp) when placing a marker on a map, which has identical syntax as [Python's list](https://www.w3schools.com/python/python_lists.asp). In order to make the trasformation as easy as possible, since `v1.6.4` there's a special filter and a tag.
198+
In case of the plain field, the python representation of coordinates is a [tuple](https://www.w3schools.com/python/python_tuples.asp). And e.g Mapbox's requires a [javascript's array](https://www.w3schools.com/js/js_arrays.asp) when placing a marker on a map, which has identical syntax as [Python's list](https://www.w3schools.com/python/python_lists.asp). In order to make the trasformation as easy as possible, since `v1.6.4` you can use a special filter or a tag (
199+
choose your preferred way)
199200
```Django
200201
{% load mapbox_location_field_tags %}
201202
<script>
@@ -210,4 +211,4 @@ address2 = AddressAutoHiddenField(map_id="unique_id_2")
210211
* Django
211212
* mapbox gl js
212213
* jQuery
213-
* html and css
214+
* html and css

0 commit comments

Comments
 (0)