Closed georgecoltart closed 10 years ago
Im also getting an error when attempting to start up the server with the most recent version?
/Users/georgecoltart/Sites/mapstitch-master/lib/index.js:40
validate = options.validate.bind(stitch) || stitch.validate;
^
TypeError: Cannot call method 'bind' of undefined
at module.exports.exports (/Users/georgecoltart/Sites/mapstitch-master/lib/index.js:40:31)
at Object.
We don't actually use the web service version of this, so I'm not sure. I'm looking into it now.
(We also always provide a custom validate function, which is how the 2nd bug snuck in--fortunately, that was an easy fix.)
Antimeridian calculation isn't done for /
since the extent is passed in via the query string. The simplest fix would be to check for "flipped" x coordinates and split the extent in 2, but that doesn't currently happen.
getTilesForView()
should work on /
now after 299c45b. Let me know how it goes.
thanks a lot for getting back to me, this seems to be working better. Doing the antimeridian calc isnt crucial for me at the moment anyway, I might work it out later if I need it. cheers!
Hey there, I'm curious to know whether the getView function that calculates multiple extents is supposed to occur in both of the url endpoints?
At the moment it looks like it's only being called in the "/mapimg" function.
This means the getTilesForView function (line 126 of lib/index), which expects an 'extents' option not a single 'extent' option is failing for me.
Can you clarify that the '/' endpoint is supposed to use the same antimeridian calculation?
thanks again for your dev work on this :)