It shows I am using them at the same time, but it’s just for illustration. The dynamic waypoints do not work even when I enter them without the static waypoints.
Yes, i tried and had exactly the same problem, unfortunatley there is absolutely no documentation on this at this time. I recall an issue with in an old post where @patrick was going to make some changes so perhaps he could enlighten us as to exactly how to pass multiple dynamic waypoints.
I will be happy to prepare documentation and a video if we can resolve this issue
(Found the old post which was related to the data format of parameters passed to it:)
EDIT: .js file indicates it needs an array of string, maybe the changes indicated in the old post never happened as they are all still type:string)
I saw that post as well. Maybe we can either get an answer or resolution. Thanks for your assistance in helping me with this!!
Be great if we could get this to work and you could add some documentation for it. Your videos are great.
However I don’t know enough about JavaScript to make this happen. What does it take to grab those flightplan coordinates from a database query? Then how do you integrate it into the Wappler Google Maps code?
This is why I think you should not try to use the Google maps Wappler component. Instead try to access Google maps using the API component. Don’t know if it will work but if it does you will be able to do anyhting with Google maps inside Wappler
Thanks @patrick, I have that, straight from the docs. Using that code I was able to verify that’s what I need for my project. However, I want to use a datasource from Wappler to populate the flightplan coordinates. Wappler is already doing this for the markers or something very similar, right?
Where do you want to add these values? You should add them as Dynamic Attributes. I believe you can also use lat/lng coords like {lat: 37.772, lng: -122.214} or with data from a database { lat: serverconnect1.data.latitude, lng: serverconnect1.data.longitude }. For the waypoints you can pass an array with these objects.
So to use a server connect response to set waypoints i have to convert the server connect response to an array with elements in the format {{lat: 1.123456, lng: 1.123456}} and use that as the waypoints dynamic value, it can’t be done directly from a server connect response?