Fixing bug; Place did not show up on map

This commit is contained in:
reverend 2020-09-12 11:58:45 +02:00
parent a1886b0b60
commit b8dfef691e
2 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,7 @@ database.
import os
import uuid
from django.urls import reverse
from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save

View File

@ -18,13 +18,13 @@
var vectorSource = new ol.source.Vector({
features: [
{% for config.point in point_list %}
{% for point in config.point_list %}
new ol.Feature({
geometry: new ol.geom.Point(
ol.proj.fromLonLat([{{point.longitude}},{{point.latitude}}])
),
url: '{{point.get_absolute_url}}',
name: '{{point.name}}'
name: ' {{point.name}}'
}),
{% endfor %}
]