Skip to content

Commit 5d5879d

Browse files
committed
fix README.md
1 parent e7fdfb4 commit 5d5879d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ When working with this table in the admin panel, we want to see a map with objec
6464

6565
To enable the display of `Location` objects on the map in the Django admin panel, you need to make changes to the model class in the` models.py` file and to the `admin.py` file.
6666

67-
Add the django_admin_geomap.GeoItem "mixin" class to the inheritance list of the `Location` class and define two properties:` geomap_longitude` and `geomap_latitude`.
67+
Add the `django_admin_geomap.GeoItem` "mixin" class to the inheritance list of the `Location` class and define two properties:` geomap_longitude` and `geomap_latitude`.
6868
These properties should return the longitude and latitude of the object as a string.
6969

7070
```python
@@ -83,7 +83,7 @@ class Location(models.Model, GeoItem):
8383
return str(self.lat)
8484
```
8585

86-
In the `admin.py` file, when registering a model, you need to use the` django_admin_geomap.ModelAdmin` class.
86+
In the `admin.py` file, when registering a model, you need to use the `django_admin_geomap.ModelAdmin` class.
8787

8888
```python
8989
# admin.py
@@ -166,9 +166,9 @@ class Location(models.Model, GeoItem):
166166
return self.geomap_popup_view
167167
```
168168

169-
### New object marker icon
169+
### New object icon
170170

171-
The `geomap_new_feature_icon` property of the` django_admin_geomap.ModelAdmin` class sets the path to the marker icon when adding a new object.
171+
The `geomap_new_feature_icon` property of the `django_admin_geomap.ModelAdmin` class sets the path to the marker icon when adding a new object.
172172

173173
```python
174174
# admin.py
@@ -180,7 +180,7 @@ class Admin(ModelAdmin):
180180

181181
### Zoom level and center of the map when displaying a list of objects
182182

183-
You can change the zoom level and position of the center of the map by setting the properties `geomap_default_longitude`,` geomap_default_latitude` and `geomap_default_zoom` in the class` django_admin_geomap.ModelAdmin`.
183+
You can change the zoom level and position of the center of the map by setting the properties `geomap_default_longitude`,` geomap_default_latitude` and `geomap_default_zoom` in the class `django_admin_geomap.ModelAdmin`.
184184

185185
By default, the center of the map is located at the point with coordinates "0.0", "0.0" and the scale is "1".
186186

0 commit comments

Comments
 (0)