Hi Jody,

> Finally got a chance to try out your MapML module - nice work!

Great! And, thanks!

>  I could not get the sample webpage from the documentation. I was able to
to create a *www* folder and run bower to download the required leaflet
stuff, but the provided html page would not work.

I'm not sure which webpage you're referring to, and we stopped using bower
a while ago.  If you want to get a copy of the latest built version of the
viewer, you can fork the repo, then do an npm install, and then run grunt
in the project directory.

You'll end up with a 'dist' directory that has the client and all the
required dependencies.  To be cross-browser, you should use / prefer the
mapml-viewer.js module, which you can refer to from your html page like so:

...
<script type="module" src="./dist/mapml-viewer.js"></script>  (relative
path as required)
...

That should get you your own copy of the client.

You should be able to use the client built into GeoServer (mostly, it may
be a wee bit behind the current client).  Or you could use the client that
gets automatically built
in our examples repo <https://maps4html.org/experiments/>, simply by
dragging a geoserver mapml preview URL onto one of the maps in in this web
site: https://geogratis.gc.ca/mapml/en/  There are a variety of basemaps
and thematic layers there.

I do apologize, we haven't got the client installable from npm yet.  Not
sure the project is ready for everyone to use it in production yet anyway,
since we're trying mostly to shape the prospective maps in HTML standard.

You can drag GeoServer mapml preview URLs from the Layer Preview list onto
an already viewed layer and do a mashup that way.  It should work for the
WFS preview content as well.

> I actually found your GWC TileSet definitions in the codebase before
noticing they were predefined in the application

Is that bad?  When you add a new layer and the MapML extension is
installed, the new layer should be set up with the predefined MapML
gridsets.  If you have an already-defined layer, you can add the mapml
gridsets to it in the tile cache tab.

> The docs say to use the layer preview as an example, but the result did
not help me much

Yes the preview is not very view source-able at this point.  I think the
most recent version of the client does a slightly better job as it provides
a "Copy MapML"  option from the map right-click context menu.  For example,
from this map
<https://maps4html.org/experiments/custom-projections/Atlas-of-Canada/> you
can copy the
map and its state.  Beware it is HTML syntax that you're copying, not xml,
so if you want to use some of that in a mapml document, you currently have
to adapt it to the xml syntax conventions (no void elements, for example).

<mapml-viewer projection="ATLAS_POLAR_MAP" zoom="4" lat="81.65097484349212"
lon="-45.27061974311523" controls="" role="application">
      <layer- label="Atlas of Canada Polar Wall Map" checked="">
        <link rel="license" title="Canadian Federal Geospatial Platform"
href="
https://geoappext.nrcan.gc.ca/arcgis/rest/services/FGP/NCR_RCN/MapServer/";>
        <extent units="ATLAS_POLAR_MAP">
          <input type="zoom" name="z" min="0" max="6" value="6">
          <input type="location" name="x" axis="column" units="tilematrix"
min="116" max="186">
          <input type="location" name="y" axis="row" units="tilematrix"
min="125" max="184">
          <link rel="tile" tref="
https://geoappext.nrcan.gc.ca/arcgis/rest/services/FGP/NCR_RCN/MapServer/tile/{z}/{y}/{x}/
">
<!--          <link rel="tile" tref="
https://geoappext.nrcan.gc.ca/arcgis/rest/services/FGP/NCR_RCN_A/MapServer/tile/{z}/{y}/{x}/
">-->
        </extent>
      </layer->
      <layer- label="Atlas of Canada Polar Wall Map Annotation"
src="annotation.mapml" checked=""></layer->
    </mapml-viewer>

> The examples of the settings filled in were good, perhaps a
tutorial would be helpful.

Agreed. I've add the tutorial idea
<https://github.com/Maps4HTML/geoserver/issues/44> as a MapML extension
issue, to keep it on the to-do list.

> Can you update the GeoServer MapML Extension link now that the project is
an official geoserver extension :)

On https://maps4html.org/ we do currently link to the extension and
documentation, updated about a month ago. Is that what you're referring to?

> Can you disable dimension, if there are no dimensions configured?

Right now, if no dimensions are configured, the dropdown only has a "None"
in it. Do you mean to even disable the dropdown?  If so, I think so,
assuming that's possible.

>  Can you disable "use tiling" if the required gridsets are not configured?

No, because if you say "Use Tiling" when the required gridsets aren't
configured, it will generate WMS requests for tiles instead of WMS requests
for the whole map.

If you do find issues that are also questions or may not rate a Jira
ticket, I keep a list of to-do items on our GeoServer fork, as GitHub Issues
<https://github.com/Maps4HTML/geoserver/issues>.  Feel free to add or
comment as the case may be!

Cheers,
Peter


On Fri, May 28, 2021 at 8:26 PM Jody Garnett <jody.garn...@gmail.com> wrote:

> Peter:
>
> Finally got a chance to try out your MapML module - nice work!
>
> Some feedback the MapML Extension docs
> <https://docs.geoserver.org/latest/en/user/extensions/mapml/index.html>:
> - I was really glad for your LayerPreview!
> - I could not get the sample webpage from the documentation. I was able to
> to create a *www* folder and run bower to download the required leaflet
> stuff, but the provided html page would not work.
> - I actually found your GWC TileSet definitions in the codebase before
> noticing they were predefined in the application
> - The docs say to use the layer preview as an example, but the result did
> not help me much
> - The examples of the settings filled in were good, perhaps a
> tutorial would be helpful.
>
> Feedback for https://maps4html.org
> - Can you update the GeoServer MapML Extension link now that the project
> is an official geoserver extension :)
>
> Feedback on configuration:
> - The License Title / License Link information overlap with WMS dated
> reference to "Access Constraints" but on a layer by layer basis. Long term
> if more protocols want to supply layer-by-layer license information I
> expect this setting will move to the data tab.
> - Can you disable dimension, if there are no dimensions configured?
> - Can you disable "use tiling" if the required gridsets are not configured?
>
> --
> Jody Garnett
>
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to