Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hello

I have a situation where I would like to make a kiosk with a map that is interactive of an amusement park. All the places I want to find in the map have gps coordinates. They are in a filemaker database. I was wondering if anyone knows how I might automate the placing of a "star" for depicting the location on the little map in filemaker. I realize this technology might exist for a web page that filemaker might address. I am just stuck and one of you might be able to help me. I have about 300 coordinates on this map. The gps is important so others may use the coordinates but I can't think of a way to automate my process of showing where that is on a map I have made. Do I have to know the boundary coordinates? I am not sure. But your feedback is especially important to me. Thanks Dave

Hi Dave,

Interesting problem. I would think that there are better apps to do this in, but one way you could mock this up in FM8 is to put a text calculation field over the map, set to not allow entry and to be transparent.

1). You will need your boundary coordinates (but if you have a single gps point on the map and a scale, you can work these out) and then put them in decimal format in the following number fields that you create:

LeftLat

RightLat

TopLong

BottomLong

Then a global field "gSpace" that you would enter 50 values of 100 spaces.

Your Place coordinates in two number fields:

Lat

Long

And finally, your textcalc "XMarksTheSpot" (unstored; text)

Let([

xscale=100/(rightlat-leftlat);

yscale=50/(toplong-bottomlong);

xmark=Round((Lat-leftlat)*xScale; 0);

ymark=Round((toplong-Long)*yScale; 0)];

Replace ( gSpace ; xmark + (101 * ymark) ; 1; "X"

)

You need to format XMarksTheSpot on the layout to be a monospaced font, and it will produce an X in the field over a 100 character (x axis) by 50 character (y axis) grid. You could adjust the size by increasing/decreasing the field font size, as well as altering the resolution in the xscale and yscale variables (and adjusting gSpace accordingly). You could also use a special font that would return a star instead of an x.

Keep in mind that the formula needs to be adjusted depending on what side of the prime meridian and equator you are on. I believe this one is good for north of the equator and east of the prime meridian.

Hope that helps get you started.

-Raz

Edited by Guest

Just saw a thread that has links to a bunch of apps that can work with fm and do this for you in a much more sophisticated manner, I would believe.

Have a look here.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.