AnsweredAssumed Answered

Google Maps: How to Display 2 Points on Single Map?

Question asked by wacole1213 on Oct 30, 2017
Latest reply on Oct 30, 2017 by schamblee

FM Pro 16 Advanced, Win 10

 

I need to display the start and end points of a ferry crossing.  The lat/long coordinates for both points are included in a single record.  I can get one point to display quite easily, it is the second that has me stumped.  Here is a script attempts to pull this off, but doesn't work, undoubtedly because I don't know what I'm doing.   Lines 13 to 17 are a duplicate of lines 8 to 12 but with the field names changed for the trip's end point.  Removing those lines allows the script to display the trip's start point.  With lines 13 to 17 included, the script doesn't work.  Not sure what coding strategy would be the simplest.  Would be grateful for advice.

 

Am using the Google API for JavaScript, which seems to have replaced the Embed API.

 

Thank you very much, indeed.

 

Outcomes