Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm refreshing my map every 5 seconds with updated GeoJSON data from webservice. I've noticed that if I do:

geojsonLayer.clearLayers().addData(geojson);
geojsonLayer._layers;

I see that the object numbers keep increasing every refresh (although I still have the same amount of objects, their "key" inside _Layers keeps increasing...)

If my app runs for several days... how will it affect the performance? What will happen when the numbers gets very large?

enter image description here

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.