Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverheilig authored Jun 11, 2019
1 parent 2b3271a commit d353404
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ Leaflet.NonTiledLayer.WMS is the implementation that makes WMS requests, similar

You can see a demo here:

http://ptv-logistics.github.io/Leaflet.NonTiledLayer/index.html
https://ptv-logistics.github.io/Leaflet.NonTiledLayer/index.html

It uses the WMS service of [PTV xServer internet](http://xserver.ptvgroup.com/en-uk/cookbook/home/), which requires a tiled/non-tiled hybrid approach (and that is the reason we've built this).
The sample also displays some 3rd-party WMS overlays that also cannot be requested in tiles.

The layer supports both Leaflet 0.7.x and Leaflet 1.0.x. The demo for 0.7 can be viewed here:

http://ptv-logistics.github.io/Leaflet.NonTiledLayer/test.0.7.html
https://ptv-logistics.github.io/Leaflet.NonTiledLayer/test.0.7.html

## How to build

Expand All @@ -43,6 +43,6 @@ or use the latest build at https://unpkg.com/leaflet.nontiledlayer/dist/
* *errorImageUrl* - the url of the image displayed when the layer fails to load (invalid request or server error). Default: 1px transparent gif ```data:image/gif;base64,R0lGODlhAQABAHAAACH5BAUAAAAALAAAAAABAAEAAAICRAEAOw==```
* *useCanvas* - use the canvas to render the images, fixes flickering issues with Firefox, doesn't work on IE8. Setting it to ```undefined``` will use canvas, if available. Default: ```undefined```

The pane and zIndex properties allow to fine-tune the layer ordering. For example, it is possible to insert a NonTiledLayer between two layers the tilePane, like the labels [here](http://176.95.37.29/coveragedemo/), or on top of the vector shapes, like the labels [here](http://ptv-logistics.github.io/fl-labs/) or [here](https://api-eu-test.cloud.ptvgroup.com/CodeSampleBrowser/index.jsp#samples/data-rendering-geoJson/view).
The pane and zIndex properties allow to fine-tune the layer ordering. For example, it is possible to insert a NonTiledLayer between two layers the tilePane, like the labels [here](http://176.95.37.29/coveragedemo/), or on top of the vector shapes, like the labels [here](https://ptv-logistics.github.io/fl-labs/) or [here](https://api-eu-test.cloud.ptvgroup.com/CodeSampleBrowser/index.jsp#samples/data-rendering-geoJson/view).

You can build your own NonTiledLayer by inheriting from NonTiledLayer and implementing either the function getImageUrl or getImageUrlAsync. The getImageUrl just returns an uri and is used by the WMS implementation. The getImageUrlAsync can be used for services that not only return images, but also additional context information for interaction. The project [here](http://ptv-logistics.github.io/Leaflet.PtvLayer/) uses this method.
You can build your own NonTiledLayer by inheriting from NonTiledLayer and implementing either the function getImageUrl or getImageUrlAsync. The getImageUrl just returns an uri and is used by the WMS implementation. The getImageUrlAsync can be used for services that not only return images, but also additional context information for interaction. The project [here](https://ptv-logistics.github.io/Leaflet.PtvLayer/) uses this method.

0 comments on commit d353404

Please sign in to comment.