-
Notifications
You must be signed in to change notification settings - Fork 19
Class PolylineMapObject
PavelTychinin edited this page Oct 29, 2021
·
2 revisions
PolylineMapObject class is used for showing polyline objects on the map.
Referenced from: LocationView.
public void setPoints(ArrayList<Point> points)Function sets the points for poly line object on the map. Points should be in metric coordinates. (For simple line just pass the start and end coordinates).
-
points— array of x and y metric coordinates for your poly line object.
public void setWidth(float width)Function sets the width of line object.
-
width— width of the line object, should be evaluated considering the fact that location view's width is from -1 to 1.
public float getWidth()Function returns the width of line object.
Width of the line map object.
public void setData(byte[] data)Function sets the data for line map object which could be used for distinguishing different objects on map.
-
data— byte array of data.
public byte[] getData()Function returns the data attached to the line object.
Byte array of data.
public void setEnabled(boolean visibility)Function is used for setting the visibility of line object on the map.
public void setColor(float red, float green, float blue, float alpha)Function is used for setting the color of map object.
-
red— red color in range 0..1. -
green— green color in range 0..1. -
blue— blue color in range 0..1. -
alpha— alpha color in range 0..1.
Tutorials
Classes
- NavigineSdk
- LocationListManager
- LocationManager
- NavigationManager
- RouteManager
- ZoneManager
- NotificationManager
- MeasurementManager
- LocationEditManager
- ResourceManager
- Location
- Sublocation
- Category
- Venue
- Zone
- Beacon
- Eddystone
- Wifi
- LocationView
- LocationViewController
- CircleMapObject
- PolylineMapObject
- IconMapObject
- TouchInput
- ScaleResponder
- PanResponder
- LongPressResponder
- DoubleTapResponder
- TapResponder
- LocationListListener
- LocationListener
- PositionListener
- RouteListener
- ZoneListener
- NotificationListener
- LocationEditListener
- MeasurementListener
- ResourceListener
- ResourceUploadListener
- Notification
- Position
- SignalMeasurement
- SensorMeasurement
- Image
- RoutePath
- RouteEvent
- LocationPoint
- LocationInfo
- BitmapRegionDecoder