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

Internal provider #221

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Internal provider #221

wants to merge 18 commits into from

Conversation

danicarrion
Copy link
Contributor

Provider that takes data from an external source (csv file example included) and works directly with the data in memory.

Documentation needs to be really improved, but code should already be reasonably legible.

@danicarrion
Copy link
Contributor Author

@fdansv please CR

@@ -85,7 +85,7 @@ MercatorProjection.prototype.latLonToTilePoint = function(lat, lon, tileX, tileY
var worldCoordinate = this._fromLatLonToPoint(lat, lon);
var pixelCoordinate = new Point(worldCoordinate.x*numTiles, worldCoordinate.y*numTiles);
var tilePixelPos = this._tilePixelPos(tileX, tileY);
return new Point(Math.round(pixelCoordinate.x-tilePixelPos.x), Math.round(pixelCoordinate.y-tilePixelPos.y));
return new Point(Math.round(pixelCoordinate.x-tilePixelPos.x), this._tileSize - Math.round(pixelCoordinate.y-tilePixelPos.y));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couldn't this break other providers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No one appears to be using those functions, but I can always handle that on my provider if you prefer.

@fdansv
Copy link
Contributor

fdansv commented Sep 23, 2015

Tests? 😄

Other than that I've no objections

@danicarrion
Copy link
Contributor Author

No tests yet, you told me to PR what I had ;-)

@eightysteele
Copy link

I want this so bad. :) If this gets rebased on master with some tests, is it mergeable? 💖

@fdansv
Copy link
Contributor

fdansv commented Feb 15, 2016

@eightysteele of course!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants