Refactoring osm map
This commit is contained in:
		@@ -11,20 +11,20 @@
 | 
			
		||||
                }),
 | 
			
		||||
            ],
 | 
			
		||||
            view: new ol.View({
 | 
			
		||||
                center: ol.proj.fromLonLat([{{place_map_center.longitude}}, {{place_map_center.latitude}}]),
 | 
			
		||||
                center: ol.proj.fromLonLat([{{config.map_center.longitude}}, {{config.map_center.latitude}}]),
 | 
			
		||||
                zoom: 9
 | 
			
		||||
            })
 | 
			
		||||
            });
 | 
			
		||||
 | 
			
		||||
            var vectorSource = new ol.source.Vector({
 | 
			
		||||
                features: [
 | 
			
		||||
                    {% for place in place_list %}
 | 
			
		||||
                    {% for config.point in point_list %}
 | 
			
		||||
                        new ol.Feature({
 | 
			
		||||
                            geometry: new ol.geom.Point(
 | 
			
		||||
                                ol.proj.fromLonLat([{{place.longitude}},{{place.latitude}}])
 | 
			
		||||
                                ol.proj.fromLonLat([{{point.longitude}},{{point.latitude}}])
 | 
			
		||||
                            ),
 | 
			
		||||
                            url: '{% url 'place_detail' pk=place.pk %}',
 | 
			
		||||
                            name: '{{place.name}}'
 | 
			
		||||
                            url: '{{point.get_absolute_url}}',
 | 
			
		||||
                            name: '{{point.name}}'
 | 
			
		||||
                        }),
 | 
			
		||||
                    {% endfor %}
 | 
			
		||||
                ]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user