Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

include neighbors of cluster cores in map app #14

Open
jkoschinsky opened this issue Mar 26, 2020 · 3 comments
Open

include neighbors of cluster cores in map app #14

jkoschinsky opened this issue Mar 26, 2020 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed JS javascript volunteers please check here!

Comments

@jkoschinsky
Copy link
Collaborator

include neighbors of cluster cores in map app since explaining to people what a cluster core is might be confusing vs just visualizing the whole cluster.

@Makosak
Copy link
Contributor

Makosak commented Mar 26, 2020

i'm not sure if this would be helpful vs the clusters as they are now -- can be confusing in either case, and multiple counties already show up in the clusters? I'm just nervous that switching that will be pretty dramatic and may change the results/make comparisons difficult in future weeks? If we didn't just publish the research brief with results, etc, would be more open to it. other thoughts?

@Makosak Makosak added the enhancement New feature or request label Mar 26, 2020
@Makosak Makosak added the JS javascript volunteers please check here! label Apr 15, 2020
@Makosak
Copy link
Contributor

Makosak commented Apr 15, 2020

From Xun:

I just added a new function: GetNeighbors(map_uid, weight_uid, idx) to GeodaProxy class (global object gda_proxy) in index.js.
After click the “Local Clustering” button, the spatial weights (define who’s who’s neighbor) will be created for local clustering and a unique weights id is assigned. The map also has a unique id, which can be accessed by calling global function: getCurrentWuuid(), e.g. in attached screen, returns {map_uuid: “county_usafacts.geojson”, w_uuid: “w_queen100"}
Then, using map unique id and weights unique id, one can call GetNeighbors() function to get the neighbors of i-th object in current map. See the example lines of code in attached screen:

get the neighbors of the county (id=100):
image

Tagging as task for JS engineer.

@Makosak Makosak added the help wanted Extra attention is needed label Apr 15, 2020
@Makosak
Copy link
Contributor

Makosak commented Apr 28, 2020

@rbrtmrtn @ariisrael a bit more cmplex but the function to call neighbors was generated by Xun already, so would just need to connect things. This is also around the "LISA" clustering map

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed JS javascript volunteers please check here!
Projects
None yet
Development

No branches or pull requests

2 participants