ngageoint / geoq

Django web application to collect geospatial features and manage feature collection among groups of users
MIT License
704 stars 133 forks source link

Fail to display GEOJSON Points as Data Feed #337

Closed ubriela closed 9 years ago

ubriela commented 9 years ago

I try to add a FeatureCollection of Point (sample below); however, the data points are not counted and shown on map (see screenshot). https://raw.githubusercontent.com/ubriela/test/master/mediaq3.geojson screenshot 2015-07-16 13 14 28 I try to inspect and figure out that the function call outputLayer.addData(geojson) on leaflet_parser_helpers.js did not successfully add the geojsond data. This is because an exception in leaflet-sc.js, the layer parameter is undefined for some reason. var layer = L.GeoJSON.geometryToLayer(geojson, options.pointToLayer, options.coordsToLatLng, options); layer.feature = L.GeoJSON.asFeature(geojson);

stephenrjones commented 9 years ago

I've pulled Khazhy's fix into my system and I'm seeing the points on the map. We'll continue to expand the capabilities using the services you defined to see if we can successfully query your system.