NYCPlanning / deprecated-labs-zap-api

Deprecated version of the ZAP API, see https://github.com/NYCPlanning/labs-zap-api
Other
5 stars 3 forks source link

use webmercator for vector tile query #52

Closed chriswhong closed 6 years ago

chriswhong commented 6 years ago

This PR makes a small change to the way the /tiles endpoint generates vector tiles.

Before, we were getting a WGS84 bounding box for a tile using sphericalmercator in node, then using those bounds to find the intersecting geometries.

This was causing a subtle shift in the point rendering when moving between zoom levels, (when zoomed out the points were all shifted north, not showing in the correct place)

Now it uses a webmercator bounding box, and transforms the all geometries to webmercator to find the intersecting features.