You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't want my server to be inside of the instance of Tilesplash. In other words, I just want to use the .layer() method and the render() function attached to a completely separated express server.
Say that I have a server configuration like this :
constexpress=require('express');constapp=express();app.use('/api',require('./routes/api'));// ... (a lot of middleware config & routes) ...app.listen(8080);
It'll be much more convenient if this library can act as a middleware so I can easily access the tile object and the render function attached to the res object like this
app.use(tilesplash({..options}));app.get('/tile/:x/:y/:z',(req,res)=>{// res.render() <-- the render() function// res.tile <-- the tile object})
The text was updated successfully, but these errors were encountered:
I don't want my server to be inside of the instance of Tilesplash. In other words, I just want to use the .layer() method and the render() function attached to a completely separated express server.
Say that I have a server configuration like this :
It'll be much more convenient if this library can act as a middleware so I can easily access the
tile
object and therender
function attached to the res object like thisThe text was updated successfully, but these errors were encountered: