Is it possible to add a map of a feature/layer in an HTML report using the HTMLReportGenerator?
Thank you in advance
Best answer by nielsgerrits
Yes.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
From the 4 pre-configured options, the other 3 either require an access token, or very clearly state something about “for development purposes only” (so probably need an access toen as well, or something...).
If you want to have a bit more control (or, like me, simply do not want to use any of the proprietary versions...), it is not that difficult to add a Custom HTML section, and use Openlayers and a bit of Javascript. Getting the geometry from the features is easy enough using a GeometryExtractor set to GeoJson. This way you have full control over the background maps as well.
It’s the solution I chose instead of one of the 4 preconfigured ones. So something like this:
I could think of a lot of additions, but the question was clear so is the answer 😁 but I’ll admit it is a bit sparse.
From the 4 pre-configured options, the other 3 either require an access token, or very clearly state something about “for development purposes only” (so probably need an access toen as well, or something...).
...
This is an answer to bookmark! Working samples are the best.