picobad.blogg.se

Gmap direction
Gmap direction












gmap direction

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. 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: 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). In the action handler execute javascript that will add the directions for the map.Create action to handle the event that is thrown after the map is initialized.

gmap direction

Thus the markers can be set with your customized icons Add the markers for the origin and destination in the map parameters.Don’t specify any directions in the map parameters.Here goes a solution to do what you want without changing the Google Maps Mobile Component.














Gmap direction