Maps4HTML / Web-Map-Custom-Element

A custom <mapml-viewer> and <layer-> element suite
https://maps4html.org/Web-Map-Custom-Element/
Other
54 stars 15 forks source link

When there's no <map-properties>, pressing enter on a feature does not handle its link, when it has a map-a #880

Closed AliyanH closed 9 months ago

AliyanH commented 10 months ago

Try with the following map to see the issue:

<mapml-viewer id="map3" style="width: 500px;height: 500px;" projection="CBMTILE" zoom="2" lat="45.5052040" lon="-75.2202344" controls controlslist="geolocation">
  <layer- label="Linked feature" checked>
    <map-meta name="projection" content="CBMTILE"></map-meta>   
      <map-feature id="linkedfeature">
        <map-featurecaption>Test link</map-featurecaption>
          <map-geometry cs="gcrs">
            <map-a href="#6,-75.705278,45.39777833216">           
              <map-point>
                <map-coordinates>-75.705278 45.397778</map-coordinates>
              </map-point>
            </map-a>
          </map-geometry>
      </map-feature>
  </layer->
</mapml-viewer>
yhy0217 commented 9 months ago

Resolved in #891