Added sample for custom hit renderer

This commit is contained in:
Anna Shchurova
2021-09-13 16:42:48 -04:00
parent a281b7c1aa
commit d2a2234eec
2 changed files with 123 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
---
layout: example.html
title: Custom Hit Detection Render
shortdesc: Example of a custom hit detection renderer.
docs: >
This example demonstrates the use of 'ol/style/Style' hitDetectionRender option function in
detecting if pointer is over a particular feature.
Move pointer over the label for Columbus Circle feature and see that only label is used in
hit detection.
tags: "circle, feature, vector, render, custom, hitDetectionRenderer"
---
<div id="map" class="map"></div>