Browse Source

Fix map display when angles are private

Jocelyn Delalande 8 years ago
parent
commit
0bae8d1581
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wifiwithme/static/map.js

+ 1 - 1
wifiwithme/static/map.js

@@ -71,7 +71,7 @@ $( document ).ready(function() {
         }
         }
 
 
         function drawSemiCircles(feature, layer) {
         function drawSemiCircles(feature, layer) {
-            if (feature.properties.place) {
+            if (feature.properties.place && feature.properties.place.angles) {
                 feature.properties.place.angles.map(function(angles) {
                 feature.properties.place.angles.map(function(angles) {
                     // Strangely enough, we need to invert the coordinates.
                     // Strangely enough, we need to invert the coordinates.
                     L.circle([feature.geometry.coordinates[1],
                     L.circle([feature.geometry.coordinates[1],