Hey! I have a UDT that represents a traveling asset. It's occasionally updated with lat/lon tags logged historically across the day if it moves. We plan non renting these assets and want to provide a daily report to our customer on where the asset went across the day.
On a perspective page, it's pretty simple to draw a marker and maybe a polyline path to show the way it took to get there. On a Report, though, it looks like a different beast since we're limited to Images (to my understanding).
Has anyone integrated maps into reports at all and done anything fancy with it? I'm still getting comfortable with the reporting module and figuring things out, so any advice might be appreciated!
Consider using a script data source in your report to "draw" into an image buffer and deliver a dataset with the encoded PNG bytes. Java's BufferedImage can provide a Graphics2D context into which you can "draw" just like Vision's Paintable Canvas.
I think that makes sense. What would you consider using as a source for the image buffer data? It looks like most maps have an api that would return a png or something to that effect. I think that would be the most straightforward, but I don't think if any of the stuff in perspective is at all accessible from a gateway script. I could be surprised though.
Just trying to leverage the work I've already done in mapping out these things and where they go.
Yes, tile servers cough up images that fit regular coordinate ranges at specific zoom levels. Your code would need to retrieve the ones you need, paint them into your custom Graphics2D, then paint the lines and icons you want for the actual path.