[mapserver-dev] Image Assets for OGC API Templates...
Steve Lime
sdlime at gmail.com
Wed Sep 8 19:49:15 PDT 2021
The logo and favicon have been added to the ocgapi-tweaks pull requests...
Base64 encoding works ok in this case. Thanks Tom!
On Wed, Sep 8, 2021 at 4:39 PM Lime, Steve D (MNIT) <steve.lime at state.mn.us>
wrote:
> 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).
>
>
>
> ..Tom
>
>
>
>
>
>
>
>
>
> On Wed, Sep 8, 2021 at 2:41 PM Steve Lime <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?
>
>
>
> --Steve
>
> _______________________________________________
> MapServer-dev mailing list
> MapServer-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-dev
> <https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.osgeo.org%2Fmailman%2Flistinfo%2Fmapserver-dev&data=04%7C01%7Csteve.lime%40state.mn.us%7C3c42e7fcd2b441aba23408d972fdf45b%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C637667258196631024%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=2OdHqhneSdq1imYYs9AamvRwu%2FHpD7QA6L%2F6xXoEqCE%3D&reserved=0>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20210908/988b0c97/attachment-0001.html>
More information about the MapServer-dev
mailing list