[mapserver-dev] Image Assets for OGC API Templates...

Lime, Steve D (MNIT) steve.lime at state.mn.us
Wed Sep 8 14:39:05 PDT 2021

True on 2... it does work, at least for the logo. Will need to try the favicon.

From: MapServer-dev <mapserver-dev-bounces at lists.osgeo.org> On Behalf Of Tom Kralidis
Sent: Wednesday, September 8, 2021 2:22 PM
To: Steve Lime <sdlime at gmail.com>
Cc: MapServer Dev Mailing List <mapserver-dev at lists.osgeo.org>
Subject: Re: [mapserver-dev] Image Assets for OGC API Templates...

This message may be from an external email source.
Do not select links or open attachments unless verified. Report all suspicious emails to Minnesota IT Services Security Operations Center.

IMHO, option 2 would be totally isolated and portable  And it would
work in protected/environments.  If that's too esoteric, then option 1 (we could
have a base path var in the templates, but yes the user needs to web enable
them somehow).


On Wed, Sep 8, 2021 at 2:41 PM Steve Lime <sdlime at gmail.com<mailto:sdlime at gmail.com>> wrote:
Hi all: We'd like to incorporate some image assets (logo, favicon) into the HTML templates for OGC API responses - make things look nice. I see 3 options:

  1.  Distributing those assets with the templates as files - requires making them web accessible and probably would require template edits by a user.
  2.  Use base64 encoded image URLs. Bloats the templates a bit but at least it's isolated in a shared header.
  3.  Reference those assets at a stable location - preferably at mapserver.org<https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmapserver.org%2F&data=04%7C01%7Csteve.lime%40state.mn.us%7C3c42e7fcd2b441aba23408d972fdf45b%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C637667258196621060%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=sMseWIZJU%2BNOZh0OG5CBlE6L2BXN%2BPh2RS9tVTiqEk4%3D&reserved=0>.
I guess I'd prefer option 3 if possible but 2 could work. Thoughts?

MapServer-dev mailing list
MapServer-dev at lists.osgeo.org<mailto:MapServer-dev at lists.osgeo.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20210908/6e955def/attachment.html>

More information about the MapServer-dev mailing list