You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
locations_markers_array - maybe we should rename this getVisibleLocations()? SourceUrl_markers_array is this the same as above but for remote locations? What if we instead just added a property to each location like source: 'remote' and then only used the above getVisibleLocations(); method instead of having 2?
@jywarren ,
To make code more modular --- we have implemented separate listeners (panning and zooming) for Local data and Remote data , hence we have made separate arrays - locations_markers_array and SourceUrl_markers_array in order to avoid Race Condition between the different listeners .
On Sun, Apr 7, 2019, 7:33 AM Sagarpreet Chadha ***@***.***> wrote:
locations_markers_array - maybe we should rename this
getVisibleLocations()?
SourceUrl_markers_array is this the same as above but for remote
locations? What if we instead just added a property to each location like source:
'remote' and then only used the above getVisibleLocations(); method
instead of having 2?
@jywarren <https://github.com/jywarren> ,
To make code more modular --- we have implemented separate listeners
(panning and zooming) for Local data and Remote data , hence we have made
separate arrays - locations_markers_array and SourceUrl_markers_array in
order to avoid Race Condition between the different listeners .
We can make a function getVisibleLocations() which basically combines the
data from these 2 arrays and returns it in the form :
[image: Screenshot 2019-04-07 at 4 54 05 PM]
<https://user-images.githubusercontent.com/14952645/55682874-b0d02000-5956-11e9-974f-e1eca93f9271.png>
Now for all future purposes , we can use only this function . What do you
think ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#67>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ8UHpddbRV6tCSJJ9OYagD2IM3zdks5veddwgaJpZM4cgtPU>
.
@jywarren ,
To make code more modular --- we have implemented separate listeners (panning and zooming) for Local data and Remote data , hence we have made separate arrays -
locations_markers_array
andSourceUrl_markers_array
in order to avoid Race Condition between the different listeners .Hence we have these 2 functions that are useful :
leaflet-blurred-location-display/src/blurredLocationDisplay.js
Line 163 in 86650cf
leaflet-blurred-location-display/src/blurredLocationDisplay.js
Line 167 in 86650cf
We can make a function getVisibleLocations() which basically combines the data from these 2 arrays and returns it in the form :
Now for all future purposes , we can use only this function . What do you think ?
The text was updated successfully, but these errors were encountered: