diff --git a/index.html b/index.html index a281f7c..f48d8b1 100644 --- a/index.html +++ b/index.html @@ -2162,7 +2162,7 @@ var mdOrigin = this._map.unproject(this._mouseDownOrigin, z); var closestMDO = this._manuallyCorrectClick(mdOrigin); - if (closestMDO.latlng) { + if (closestMDO && closestMDO.latlng) { this._mouseMarker.setLatLng(closestMDO.latlng); this._mouseDownOrigin = this._map.project(closestMDO.latlng, z); } @@ -2171,7 +2171,7 @@ var oeOrigin = this._map.unproject([e.originalEvent.clientX, e.originalEvent.clientY], z); var closestOE = this._manuallyCorrectClick(oeOrigin); - if (closestOE.latlng) { + if (closestOE && closestOE.latlng) { e.originalEvent = this._map.project(closestOE.latlng, z); } } @@ -3017,6 +3017,23 @@ border-bottom: 1px solid black; cursor: text; min-width: 300px; +} + +.project-content-switch { + color: green; + background: white; + display: flex; + flex-grow: 1; + align-items: center; + justify-content: center; + text-transform: uppercase; + font-weight: bold; + cursor: pointer; +} + +.project-content-switch.active { + background: green; + color: white; }