Search code examples
filemaker

Dynamically move UI object in Filemaker


I'm using Filemaker 12 advanced and I need to overlay a UI object on top of an image container object of a map (Google static map). I need to place these objects though script because I'm calculating their positions based on GPS data.

The hard part of converting the GPS distances to pixels I've already got working from this article here: https://gis.stackexchange.com/questions/46729/corner-coordinates-of-google-static-map-tile

Now I just need to be able to place some type of marker in the UI dynamically. I heard UI object properties can't be changed from script, but that was in reference to an older FM version. Does anybody know whether that's still impossible or not? Or of any possible workarounds? Is it completely impossible to modify the image data itself to somehow show a marker?

I tried doing this with a scatter plot but they're aren't enough controls to actually place a point on a per-pixel level.


Solution

  • I have not come across a way to dynamically move elements in FileMaker, so I don't think you'll have much luck there.

    The scatter plot is an interesting idea, but I think you'll find the web viewer easiest to work with since you can use data URLs and Javascript.

    If you set the URL of the web viewer to "data:text/html," and follow that with an HTML page (optionally including Javascript) you can make a pretty powerful display engine. You can use a similar technique to include graphics in the HTML page, so that you don't need to do any loading from external websites.

    For more information about data urls in FileMaker try: http://sixfriedrice.com/wp/filemaker-9-tip9-web-viewers-without-the-web/