Fixing bug; Place did not show up on map
This commit is contained in:
parent
a1886b0b60
commit
b8dfef691e
@ -9,6 +9,7 @@ database.
|
|||||||
import os
|
import os
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
|
from django.urls import reverse
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
from django.db.models.signals import post_save
|
from django.db.models.signals import post_save
|
||||||
|
@ -18,13 +18,13 @@
|
|||||||
|
|
||||||
var vectorSource = new ol.source.Vector({
|
var vectorSource = new ol.source.Vector({
|
||||||
features: [
|
features: [
|
||||||
{% for config.point in point_list %}
|
{% for point in config.point_list %}
|
||||||
new ol.Feature({
|
new ol.Feature({
|
||||||
geometry: new ol.geom.Point(
|
geometry: new ol.geom.Point(
|
||||||
ol.proj.fromLonLat([{{point.longitude}},{{point.latitude}}])
|
ol.proj.fromLonLat([{{point.longitude}},{{point.latitude}}])
|
||||||
),
|
),
|
||||||
url: '{{point.get_absolute_url}}',
|
url: '{{point.get_absolute_url}}',
|
||||||
name: '{{point.name}}'
|
name: ' {{point.name}}'
|
||||||
}),
|
}),
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user