mergMKDirectionsAddPolylineOverlay

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
mergMKDirectionsAddPolylineOverlay <pDirectionID>, <pRouteNumber>, [<pStepNumber>], [<pLineWidth>], [<pLineColor>]
Associationsmergmk
Summary

Add a polyline overlay showing the directions for a route or a step within a route

Introduced8.0
OSios
Platformsmobile
Parameters
NameTypeDescription
pDirectionID

A directions ID as returned by the mergMKDirections message

pRouteNumber

A route number between 1 and the number of routes sent in the mergMKDirections message

pStepNumber

(optional with 0 default) The step number within the route. If you want to draw the entire route polyline then set this parameter to 0

pLineWidth

(optional with 3 default) the width of the line in points defaults to 3

pLineColor

(optional with "0,0,0,0" default) the color of the line defaults to opaque red. The string is an RGB value with each color component an integer between 0 and 255. An optional fourth item between 0 and 255 may be included to represent the alpha transparency.

Values
NameTypeDescription
return

the overlay id as required by mergMKDeleteOverlay

Description

Add a polyline overlay showing the directions for a route or a step within a route

Tagsexternals