G maps directions6/14/2023 This will create a route in the map with the color that you specify and allowing for the markers to be suppressed: var map = osGoogleMap.getMap($parameters.MapId).gMap ĭirectionsService = new () ĭirectionsDisplay = new google.maps. In the javascript code, paste the following code. With this parameters you can set the Origin, Destination, Color and if you want or not the Markers for Origin and Destination: Open the Javascript statement and add the following parameters to the MapMapInitialized action. Over 220 countries and territories mapped and hundreds of millions of businesses and places on the map. This action will receive as parameter the MapId, thus allowing us later to get the map object in javascript:Īdd a Javascript statement to the MapMapInitialized action: Navigate your world faster and easier with Google Maps. The rest, do as follows.Ĭreate action to handle the MapInitialized event: I think that steps 1 and 2 don’t need more detail. This javascript will add the directions and you can specify the color of the route and that you do not want any markers (and thus you can later on add them with a custom image).
0 Comments
Leave a Reply. |