-
Notifications
You must be signed in to change notification settings - Fork 131
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
base: master
Are you sure you want to change the base?
Internal provider #221
Conversation
new default styles
getbounds now work
getCategories is not random anymore :-/
@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)); |
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.
couldn't this break other providers?
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.
No one appears to be using those functions, but I can always handle that on my provider if you prefer.
Tests? 😄 Other than that I've no objections |
No tests yet, you told me to PR what I had ;-) |
I want this so bad. :) If this gets rebased on master with some tests, is it mergeable? 💖 |
@eightysteele of course! |
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.