forked from mapbox/geojson-vt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
equirectangular (EPSG:4326) projection
- Loading branch information
Diego Torres
committed
Feb 24, 2017
1 parent
ba4dd53
commit e78e46a
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e78e46a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@diegotorresd - THANK YOU for looking into this! Going to try this out! If this really works it is definitely something to merge into geojson-vt overall.
e78e46a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@diegotorresd @markeberhart
Hi, I used the package from: https://unpkg.com/geojson-vt@3.1.0/geojson-vt.js and replaced, per your suggestion, as below.
// function v(t) { var e = Math.sin(t * Math.PI / 180), n = .5 - .25 * Math.log((1 + e) / (1 - e)) / Math.PI; return n < 0 ? 0 : 1 < n ? 1 : n }
function v(t) { var n = -(t[1] / 180) + 0.5; return n < 0 ? 0 : 1 < n ? 1 : n }
It does not work the expected way per your description and the points are misplaced. Any suggestions? Perhaps you could point to your
geojson-vt.js
file?Thanks