You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding tabbing navigation and accessibility to map (#270)
* Allow features to be focused
* Adds crosshair, shows on keyboard movement
* Shows crosshair on tab
* Only run on moveend if there are queryable layers
* Revert listener change
* Adds tests for keyboard interaction
* Remove close button from feature popup
* Add bypass navigation
* Query popup fix
* Add feature count, move controls to bottom
* Test update to consider skip buttons
* Test update
* Adds next and previous focus buttons
* Add tests for keyboard interaction
* Rename variables and add comments
* Remove handlers on close
Co-authored-by: Peter Rushforth <[email protected]>
Copy file name to clipboardExpand all lines: src/mapml-viewer.js
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -211,6 +211,7 @@ export class MapViewer extends HTMLElement {
211
211
this._attributionControl=this._map.attributionControl.setPrefix('<a href="https://www.w3.org/community/maps4html/" title="W3C Maps for HTML Community Group">Maps4HTML</a> | <a href="https://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>');
212
212
213
213
this.setControls(false,false,true);
214
+
this._crosshair=M.crosshair().addTo(this._map);
214
215
215
216
// Make the Leaflet container element programmatically identifiable
d="m 99.287826,50.219457 c 0,-2.322349 -1.881835,-4.204184 -4.204184,-4.204184 l -31.76714,0 c -2.322349,0 -4.204184,1.881835 -4.204184,4.204184 0,2.322349 1.881835,4.204185 4.204184,4.204185 l 31.76714,0 c 2.320658,0 4.204184,-1.881836 4.204184,-4.204185 z"
0 commit comments