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

Focus on User's Location on First View #3

mattkendall opened this Issue Mar 2, 2015 · 0 comments


None yet
1 participant

mattkendall commented Mar 2, 2015

Older versions of the site focused in on sites "near" the current location. Much of the bones are still in place and just need to be connected together.

There is a service available in services.js that will return a JSON structure with an overview of the map data, including a bounds object that surrounds all properties within 1 mile. The structure looks something like this:

  "dates": ["2015-02-05"], 
  "towns": ["Cary"], 
  "closest": {
    "bounds": [-78.9149484920922, 35.8291827138123, -78.8841665382659, 35.8632290159], 
    "permits": []
  "categories": ["rezone", "subplan"]

The bounds object needs to be pulled from the service and then fed into the maps object in the gmap.js service. There's an example of manipulating the bounds here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment