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

map-meta name=zoom throws error #890

Closed AliyanH closed 10 months ago

AliyanH commented 10 months ago

see example below, removing the map-meta name=zoom will result in this working.

<mapml-viewer projection="OSMTILE" zoom="10" lon="-75.7" lat="45.4" controls="">
      <layer- label="OpenStreetMap" src="https://maps4html.org/web-map-doc/demo/data/osm.mapml" checked=""></layer->
      <layer- label="Polygon" checked>
        <map-meta name="projection" content="OSMTILE"></map-meta>
        <map-meta name="zoom" content="min=10,max=11"></map-meta>
        <map-feature>
          <map-featurecaption>Click me!</map-featurecaption>
          <map-geometry cs="gcrs">
              <map-polygon class="polygon">
                <map-coordinates>-75.8242035 45.3526278 -75.6793213 45.4572409 -75.5680847 45.4692806 -75.6092834 45.4215881 -75.5756378 45.3810901 -75.7946777 45.3120804</map-coordinates>
              </map-polygon>
          </map-geometry>
          <map-properties></map-properties>
        </map-feature>
      </layer->
    </mapml-viewer>