11-05-2018 02:19 AM
images can be added to tooltips via url
What about mimetype imagery in db, can they be linked to feature analyzer tooltips?
Any help appreciated
Solved! Go to Solution.
11-05-2018 12:57 PM
can you please elaborate more on this? Do you want to place the imagery within the tooltip? You may use a functional attribute to build the WMS getMap or getLegendGraphic calls.
11-08-2018 03:34 AM
to be more precise: I am collecting fotos via Mobile App and save them in mimetype format in the db.
I would like to show those fotos in my tooltips.
11-13-2018 03:09 AM
OK, mimetype was the wrong direction.The image is saved in a column "image" and a column "thumbnail" of type bytea as binary data. I think, those should be addressed, but how?
11-13-2018 05:18 AM
There is a great post on adding multimedia to Analyzer View tooltips found here
Additionally, there are script examples provided within the Analyzer View > Functional Attributes tab to help accomplish this.
They are complete with comments to aid in personalizing the script.
11-13-2018 05:34 AM
yes, I know those possibilities. As far as I understand, a url to the image is needed which I do not have collecting photos via Mobile App. If there is a way to access those images I could create a functional attribute which serves as a url....
11-14-2018 12:14 AM - edited 11-14-2018 12:21 AM
How about encoding the image into base64, which could be done automatically in the database using trigger or such, and then reference this column value like e.g.:
EDIT: See this link for details
11-14-2018 05:42 AM
I've just sucessfully tested this workflow - it expects to have base64 encoded image in the DB:
select 'data:image/png;base64,'+(select [image] as '*' for xml path(''))
11-14-2018 07:03 AM
yes, indeed it's working well.
The only thing I am still struggling with is the option with showImageViewer. The base64 url is not accepted.
Anyhow, the tooltips look great now!!!