Updating / refreshing a live geojson layer | JSON & JS Variable
- by Ozaki
TLDR I am trying to get my geoJSON layer to update, currently it will 1. Create the vector mark, 2. Remove the vector mark, 3. Set the JS variable for lat and lon, 4. Unset the variable??? :S
Hey S O.
I have a geojson layer set up as follows:
//GeoJSON Layer//
var layer1 = new OpenLayers.Layer.GML("My GeoJSON Layer", "coordinates",
…