Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fix broken sample link
  • Loading branch information
oliverheilig authored May 18, 2024
1 parent e45a862 commit 86a239b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ Or use the latest build at https://unpkg.com/leaflet.nontiledlayer/dist/
* *detectRetina* - doubles the actual image size requested, if the Browser is in retina mode. Default: ```false```
* *crossOrigin* - enables cross origin capabilities. Valid values are 'anonymous' and 'use-credentials'. 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 of 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/samplebrowser/#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 of the tilePane, like the labels [here](https://sharpmapwidgets.azurewebsites.net/), 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/samplebrowser/#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](https://ptv-logistics.github.io/Leaflet.PtvLayer/) uses this method.

0 comments on commit 86a239b

Please sign in to comment.