[OutSystems Maps] JavaScript Error "osGoogleMap is not defined"
Forge component by Platform Maintenace
Application Type

the code is working in OutSystems Map v1.0.0 but generates error "osGoogleMap is not defined"

Traced the error and found the problematic code:

Any idea how to fix this?



Hello George Qiao,

I'm sorry you have encountered this error. The OutSystems Maps component faced a revamp with Version 1.1.0.

You can use the following code to get your Map Object ->


In order to get your google map ->


Regarding the logic you are using to create directions, I would like to suggest the following link - Show Directions on a Map. We released a set of client actions (Version 1.2.0) that might be useful when the goal is to create and get metrics about a specific direction (from an origin to a destination and containing waypoints). You can check OutSystems Maps APIs here.

If you need further details or explanations, don't hesitate.

Best regards,

Tiago Pereira

Thanks, Tiago. 

I've replaced with the SetDirections client action and configured accordingly. It is now working without any error.



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.