diff --git a/README.md b/README.md index 46c4b46..5b2e9eb 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,11 @@ First, just create an mbtiles file (via Tilemill probably cause it's freaking am 1. `node server.js TILEFILE [PORT]` Visit [http://localhost:3000/3/1/2.png](http://localhost:3000/3/1/2.png) + +In case you are using OpenLayers for rendering, you can use the following source config in your ol.Map({}) options: + +```js + source: new ol.source.TileImage({ + url:"http://localhost:3000/{z}/{x}/{y}.png" + }) +```