Skip to content

Remote layer title as set in GeoServer catalog not used in MapML document #96

Description

@prushforth
Image

produces:

<mapml- xmlns="http://www.w3.org/1999/xhtml">
  <map-head>
    <map-title>Current Conditions</map-title>
    <map-base href="http://localhost:8080/geoserver/wms"></map-base>
    <map-meta charset="utf-8"></map-meta>
    <map-meta content="text/mapml;projection=MAPML:BCALBERS" http-equiv="Content-Type"></map-meta>
    <map-link href="http://localhost:8080/geoserver/msc/ows?request=GetLegendGraphic&amp;service=WMS&amp;format=image%2Fpng&amp;version=1.3.0&amp;layer=msc%3ABC_CONDITIONS" rel="legend"></map-link>
    <map-link href="http://localhost:8080/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng%3Bmapmlusemultiextents%3Afalse%3Bmapmlusetiles%3Afalse%3Bmapmlusefeatures%3Afalse&amp;request=GetMap&amp;crs=EPSG%3A3005&amp;service=WMS&amp;bbox=-1.3228052404627757E7%2C-8558822.529592017%2C1.4929124260812046E7%2C1.6668226238650437E7&amp;format=text%2Fmapml&amp;layers=BC_CONDITIONS&amp;width=688&amp;styles=&amp;version=1.3.0&amp;transparent=true&amp;height=768" rel="self style" title=""></map-link>
    <map-link href="http://localhost:8080/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng%3Bmapmlusemultiextents%3Afalse%3Bmapmlusetiles%3Afalse%3Bmapmlusefeatures%3Afalse&amp;request=GetMap&amp;crs=MapML%3AOSMTILE&amp;service=WMS&amp;bbox=-1.9997545994532578E7%2C-2.6990483900319558E7%2C2.0023432866572395E7%2C2.0280826765445303E7&amp;format=text%2Fmapml&amp;layers=BC_CONDITIONS&amp;width=688&amp;version=1.3.0&amp;transparent=true&amp;height=768" rel="alternate" projection="OSMTILE"></map-link>
    <map-link href="http://localhost:8080/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng%3Bmapmlusemultiextents%3Afalse%3Bmapmlusetiles%3Afalse%3Bmapmlusefeatures%3Afalse&amp;request=GetMap&amp;crs=MapML%3ACBMTILE&amp;service=WMS&amp;bbox=-3.6789158462425494E8%2C-3.407050070132815E8%2C3.763753448303667E8%2C4.143228772335117E8&amp;format=text%2Fmapml&amp;layers=BC_CONDITIONS&amp;width=688&amp;version=1.3.0&amp;transparent=true&amp;height=768" rel="alternate" projection="CBMTILE"></map-link>
    <map-link href="http://localhost:8080/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng%3Bmapmlusemultiextents%3Afalse%3Bmapmlusetiles%3Afalse%3Bmapmlusefeatures%3Afalse&amp;request=GetMap&amp;crs=MapML%3AAPSTILE&amp;service=WMS&amp;bbox=-8.324927820817502E8%2C-5.35149319798918E8%2C4.769134070174556E8%2C6.906323711854142E8&amp;format=text%2Fmapml&amp;layers=BC_CONDITIONS&amp;width=688&amp;version=1.3.0&amp;transparent=true&amp;height=768" rel="alternate" projection="APSTILE"></map-link>
    <map-link href="http://localhost:8080/geoserver/msc/wms?format_options=mapml-wms-format%3Aimage%2Fpng%3Bmapmlusemultiextents%3Afalse%3Bmapmlusetiles%3Afalse%3Bmapmlusefeatures%3Afalse&amp;request=GetMap&amp;crs=MapML%3AWGS84&amp;service=WMS&amp;bbox=-180.0%2C-90.0%2C180.0%2C90.0&amp;format=text%2Fmapml&amp;layers=BC_CONDITIONS&amp;width=688&amp;version=1.3.0&amp;transparent=true&amp;height=768" rel="alternate" projection="WGS84"></map-link>
    <map-style>.bbox {display:none} </map-style>
  </map-head>
  <map-body>
    <map-extent units="BCALBERS" checked="checked" hidden="hidden">
      <map-input name="z" type="zoom" min="0" max="13"></map-input>
      <map-input name="xmin" type="location" rel="map" position="top-left" axis="easting" units="pcrs" min="-1.3228052404627757E7" max="1.4929124260812046E7"></map-input>
      <map-input name="ymin" type="location" rel="map" position="bottom-left" axis="northing" units="pcrs" min="-8558822.529592017" max="1.6668226238650437E7"></map-input>
      <map-input name="xmax" type="location" rel="map" position="top-right" axis="easting" units="pcrs" min="-1.3228052404627757E7" max="1.4929124260812046E7"></map-input>
      <map-input name="ymax" type="location" rel="map" position="top-left" axis="northing" units="pcrs" min="-8558822.529592017" max="1.6668226238650437E7"></map-input>
      <map-input name="w" type="width" min="1" max="4096"></map-input>
      <map-input name="h" type="height" min="1" max="4096"></map-input>
      <map-link tref="https://geo.weather.gc.ca/geomet?request=GetMap&amp;crs=EPSG:3005&amp;service=WMS&amp;bbox={xmin},{ymin},{xmax},{ymax}&amp;layers=CURRENT_CONDITIONS&amp;format=image/png&amp;width={w}&amp;styles=&amp;language=en&amp;version=1.3.0&amp;transparent=true&amp;height={h}" rel="image"></map-link>
      <map-input name="i" type="location" axis="i" units="map"></map-input>
      <map-input name="j" type="location" axis="j" units="map"></map-input>
      <map-link tref="https://geo.weather.gc.ca/geomet?request=GetFeatureInfo&amp;query_layers=CURRENT_CONDITIONS&amp;crs=EPSG:3005&amp;bbox={xmin},{ymin},{xmax},{ymax}&amp;language=en&amp;version=1.3.0&amp;transparent=true&amp;service=WMS&amp;layers=CURRENT_CONDITIONS&amp;width={w}&amp;x={i}&amp;feature_count=50&amp;y={j}&amp;styles=&amp;info_format=text/plain&amp;height={h}" rel="query"></map-link>
    </map-extent>
  </map-body>
</mapml->

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions