22 lines
728 B
HTML
22 lines
728 B
HTML
---
|
|
layout: example.html
|
|
title: Hit Tolerance
|
|
shortdesc: Example of using the hitTolerance parameter.
|
|
docs: >
|
|
Choose the hit tolerance parameter in pixels and try to click on or near the line feature. If the feature gets hit, it is colored green.
|
|
tags: "hitTolerance"
|
|
---
|
|
<div id="map" class="map"></div>
|
|
<form class="form-inline">
|
|
<span id="status"> No feature got hit.</span>
|
|
<br />
|
|
<label>Hit tolerance for selecting features </label>
|
|
<select id="hitTolerance" class="form-control">
|
|
<option value="0" selected>0 Pixels</option>
|
|
<option value="5">5 Pixels</option>
|
|
<option value="10">10 Pixels</option>
|
|
</select>
|
|
<br />
|
|
Area: <canvas id="circle" style="vertical-align: middle"/>
|
|
</form>
|