marklogic-community / eauser-geomapper

TEACUP: MarkLogic-based visualization of where early access users are from

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Click on a group of markers on the map and see them expand. Then deselect all check boxes and recheck the select all box for features and watch the map not update itself correctly.

kmcostel opened this issue · comments

  1. Load dev window
  2. Unselect all boxes
  3. Click on a group of markers to show the spiderfy feature which makes markers spiral around eachother
    if they overlap
  4. Click the select all box inside the feature menu
  5. Notice how no users are shown on the map
  6. This is not correct, some users have features and should be drawn on map because they match a feature selected.
  7. Debug. Look at request sent to search.sjs and what is being returned.

Issue has been referenced but looks like developer never did anything about it jawj/OverlappingMarkerSpiderfier-Leaflet#11

Bug is being caused because the spiderfy object is drawing linestrings on the map. Then these linestrings are being passed into search.sjs inside the searchRegions object. So search.sjs is looking for markers inside of the linestrings and sadly is finding no users on these lines.

Need to remove the linestrings from the map or somehow determine the type of the drawn object on the map and not pass it into search.sjs if it is a linestring

Also every marker is being added to the oms object. So maybe just use this object to keep track of markers? Because there are 2 objects to keep track of markers as of now. The markers object and the oms object.