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.

Google Maps in FileMaker with Carafe

Featured Replies

  • Newbies

I’m probably a bit late to the party but with v19 I’m having a closer look at leveraging JavaScript within FileMaker. Carafe is a very nice solution and I started with the Google Maps example to get my head around whats happening.

Carafe made it really easy to get things in place although I initially only had default black markers because I “mistakenly” used “colour” as the key. 

I do have a small issue … I’ve noticed that zooming out gets a little weird if the minimumClusterSize is set to 1 or if the set of markers is a single record.  In the case of a single record presentation starts at max zoom in and as you zoom out the marker stays “fixed” in place but not true to its “position”.  For default zoom I guess the current code sets the zoom to be appropriate to accommodate the supplied data set.  Not sure why the marker doesn’t stay accurate ... seems only to be accurate at max zoom.

I understand that for clustering purposes the location has to take into consideration the markers being clustered but it seems to be quite inaccurate when you get down to individual markers.

 

  • 4 weeks later...

Yes, you're right that with the cluster feature enabled, you're at crossed purposes with the size set to 1. Really it's intended to be set to more than one. It would be possible to do without the cluster feature added, but this bundle isn't set up for that use case.

  • Author
  • Newbies

Yes it seems to work when there are clusters but once you get to individual pins they are not accurate.

I decided to scape the Carafe implementation and went with the example code on the Google Developer site.

Now I get clusters when zoomed out and accurate pin locations when zoomed in.  Added some bounds based on the extremities of my data and initial Zoom = 1 so my map starts showing all my locations and clusters as appropriate.  You can then zoom in but can't zoom out further or shift outside the data area.

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.