-
Notifications
You must be signed in to change notification settings - Fork 1
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
A little more info as to how this package works? #6
Comments
OK so having found this: Usage: $0 --zoom [zoom] --provider [provider] minX minY maxX maxY So the (minX minY maxX maxY) variables the tile numbers in the /x/y.png tile URL? |
It's not obvious ;-) A provider template is what you're thinking: A view looks like this and can be generated using {
extents: [[-122.737, 37.955, -122.011, 37.449]], // this is an array of extents to support stitching around 180º east/west (the antimeridian).
zoom: zoom // e.g. 12
};
|
Great, thanks for clarifying. |
What platform? It's definitely painful, but I've had success on OS X with |
Im on a mac, I've got Cairo installed OK. I think it's a broken link to jpeglib.h that's causing me problems, I've posted it here: |
Weird. Which OS X version? I've had more problems with Cairo on 10.7 than 10.8, but did get it to install (mainly by adding more stuff to If you installed |
Thanks for your help with that one.. Sorry I'm not a Node dev, I'm not sure if this is obvious stuff or not... |
Sure, no problem. What are you trying to achieve? If you're running the server, you can skip the bit about provider URLs and use one of the ones present in Here's an example: http://localhost:8080/mapimg?w=1500&h=1500&extent=37.955:-122.737:37.449:-122.011&p=trees-cabs-crime That will produce a 1500x1500 image of trees, cabs, and crime for San Francisco (that particular style only covers SF). Note that the coordinates in the extent in the URL are latitude/longitude (where they're x/y when using it programmatically). There's a second endpoint that accepts an extent and a zoom and will produce an image of whatever dimensions are correct: http://localhost:8080/?zoom=12&extent=37.955:-122.737:37.449:-122.011&p=trees-cabs-crime |
Superb, I'm up and running now. My end goal is print-focussed, so this is ideal for generating my base layer. One thing I noticed on the JPEG maps is that I get a
Will I have to downgrade my version of JPEG? It looks like I have 8 installed, are you getting this your end after your recent updates? |
Hmm.. I'd reinstall |
@mojodna The second endpoint you mention doesn't work right for me. If I run If I change the zoom parameter, I still get the same map. |
|
I'm trying to digest what the inputs are for this. It looks like just what I need...
It looks like the required instantiation vars are a 'provider template' and a 'view'
Is the provider template something like http://[abc].tile.openstreetmap.org/zoom/x/y.png ?
And the view is what kind of data?
Sorry Im a rookie Im not sure if this is obvious.
The text was updated successfully, but these errors were encountered: