ojamas / nyc-street-parking

Interactive map for viewing NYC street parking regulations
2 stars 0 forks source link

map.fitBounds() for non contiguous features can mess with zoomLayerChange intended functionality #4

Open ojamas opened 7 years ago

ojamas commented 7 years ago

Example: select the "airport" feature in Queens. Because it includes two airports that basically bookend north and south Queens, the map.fitBounds() representation is the same zoom level as the boro-view where neighborhood features are no longer able to be selected.

SOLUTIONS: Somehow remember which feature was selected and choose not to use the zoomLayerChange rules based on the feature selected.

Create two separate features so that La Guardia and JFK are not considered one "neighborhood"