Stephan Georg

Results 35 comments of Stephan Georg

True, `writeFileSync` would block IO and initial request would take much longer to wait until disk write process is finished. But maybe you should write the file to a temporary...

Ah wait. But it wouldn't fix the fact that the 2nd request to that file has no info that it is currently in state "writing". So on top of that...

Sure. You can use any Tiles URL you want (i.e. Mapbox, ...). ``` const StaticMaps = require('staticmaps'); const options = { width: 600, height: 400, tileUrl: 'http://tiles.yourservice.map/{z}/{x}/{y}.png', }; const map...

Example for Mapbox would be ```` const StaticMaps = require('staticmaps'); const options = { width: 600, height: 400, tileUrl: 'https://api.mapbox.com/styles/v1/mapbox/streets-v10/tiles/256/{z}/{x}/{y}?access_token=', }; const map = new StaticMaps(options); ````

No, vector tiles are not supported yet. Staticmaps works only with raster tiles.

Hi @mohd-akram. Yeah, sounds reasonable. Unfortunately I currently have no resources to work on that topic. Do you have and could you write a PR? Would be awesome.

Sure, but it's a basemap not a layer: ``` const StaticMaps = require('staticmaps'); const options = { width: 600, height: 400, tileUrl: 'http://openfiremap.org/hytiles/{z}/{x}/{y}.png', }; const map = new StaticMaps(options); ```

Can I see a code snippet?

Ok, I checked the tiles and its indeed a layer and not a basemap: http://openfiremap.org/hytiles/11/1084/700.png Sorry, I thought the hydrant icons are rendered onto the tile images. This is a...

Thanks for the PR. Could you please add a test.