Module

button

Custom Buttons Controls Class and functions definitons

View Source button.js, line 1

Classes

MapboxGLButtonControl

Methods

# inner addAnchorMarkerToMap(geojson_anchors, geojson_asset_points, geojson_antennas, geojson_lines_of_sight, wall_intersections_points, geojson_walls, map_max_long, map_min_long, map_max_lat, map_min_lat)

Add a new Anchor Marker to the Map
Parameters:
Name Type Description
geojson_anchors FeatureCollection Anchors FeatureCollection
geojson_asset_points FeatureCollection Asset Points FeatureCollection
geojson_antennas FeatureCollection Antennas FeatureCollection
geojson_lines_of_sight FeatureCollection Lines of Sight FeatureCollection
wall_intersections_points FeatureCollection Map Features Walls Points Intersections FeatureCollection
geojson_walls FeatureCollection Map Features Walls FeatureCollection
map_max_long number Maximum value of Map Longitude
map_min_long number Minimum value of Map Longitude
map_max_lat number Maximum value of Map Latitude
map_min_lat number Minimum value of Map Latitude

View Source button.js, line 750

# inner addAntennaMarkerToMap(geojson_antennas, geojson_antennas_directions, geojson_asset_points, geojson_anchors, geojson_lines_of_sight, wall_intersections_points, geojson_walls, pulsing_dots_layers_sources, map_max_long, map_min_long, map_max_lat, map_min_lat)

Add a new Antenna Marker to the Map
Parameters:
Name Type Description
geojson_antennas FeatureCollection Antennas FeatureCollection
geojson_antennas_directions FeatureCollection Antennas Directions FeatureCollection
geojson_asset_points FeatureCollection Asset Points FeatureCollection
geojson_anchors FeatureCollection Anchors FeatureCollection
geojson_lines_of_sight FeatureCollection Lines of Sight FeatureCollection
wall_intersections_points FeatureCollection Map Features Walls Points Intersections FeatureCollection
geojson_walls FeatureCollection Map Features Walls FeatureCollection
pulsing_dots_layers_sources Array Pulsing Dots sources Array
map_max_long number Maximum value of Map Longitude
map_min_long number Minimum value of Map Longitude
map_max_lat number Maximum value of Map Latitude
map_min_lat number Minimum value of Map Latitude

View Source button.js, line 590

# inner addAssetPointMarkerToMap(geojson_antennas, geojson_asset_points, geojson_assetpoints_directions, geojson_anchors, geojson_lines_of_sight, wall_intersections_points, geojson_walls, pulsing_dots_layers_IDs, pulsing_dots_layers_sources, map_max_long, map_min_long, map_max_lat, map_min_lat)

Add a new Asset Point Marker to the Map
Parameters:
Name Type Description
geojson_antennas FeatureCollection Antennas FeatureCollection
geojson_asset_points FeatureCollection Asset Points FeatureCollection
geojson_assetpoints_directions FeatureCollection Asset Points Directions FeatureCollection
geojson_anchors FeatureCollection Anchors FeatureCollection
geojson_lines_of_sight FeatureCollection Lines of Sight FeatureCollection
wall_intersections_points FeatureCollection Map Features Walls Points Intersections FeatureCollection
geojson_walls FeatureCollection Map Features Walls FeatureCollection
pulsing_dots_layers_IDs Array Pulsing Dots IDs Array
pulsing_dots_layers_sources Array Pulsing Dots sources Array
map_max_long number Maximum value of Map Longitude
map_min_long number Minimum value of Map Longitude
map_max_lat number Maximum value of Map Latitude
map_min_lat number Minimum value of Map Latitude

View Source button.js, line 275

# inner deleteLastAnchorMarkerFromMap(geojson_anchors, geojson_asset_points, geojson_antennas, geojson_lines_of_sight, wall_intersections_points, geojson_walls)

Delete the last Anchor Marker from the Map
Parameters:
Name Type Description
geojson_anchors FeatureCollection Anchors FeatureCollection
geojson_asset_points FeatureCollection Asset Points FeatureCollection
geojson_antennas FeatureCollection Antennas FeatureCollection
geojson_lines_of_sight FeatureCollection Lines of Sight FeatureCollection
wall_intersections_points FeatureCollection Map Features Walls Points Intersections FeatureCollection
geojson_walls FeatureCollection Map Features Walls FeatureCollection

View Source button.js, line 820

# inner deleteLastAntennaMarkerFromMap(geojson_antennas, geojson_antennas_directions, geojson_asset_points, geojson_anchors, geojson_lines_of_sight, wall_intersections_points, geojson_walls, pulsing_dots_layers_sources)

Delete the last Antenna Marker from the Map
Parameters:
Name Type Description
geojson_antennas FeatureCollection Antennas FeatureCollection
geojson_antennas_directions FeatureCollection Antennas Directions FeatureCollection
geojson_asset_points FeatureCollection Asset Points FeatureCollection
geojson_anchors FeatureCollection Anchors FeatureCollection
geojson_lines_of_sight FeatureCollection Lines of Sight FeatureCollection
wall_intersections_points FeatureCollection Map Features Walls Points Intersections FeatureCollection
geojson_walls FeatureCollection Map Features Walls FeatureCollection
pulsing_dots_layers_sources Array Pulsing Dots sources Array

View Source button.js, line 674

# inner deleteLastAssetPointMarkerFromMap(geojson_antennas, geojson_asset_points, geojson_assetpoints_directions, geojson_anchors, geojson_lines_of_sight, wall_intersections_points, geojson_walls, pulsing_dots_layers_IDs, pulsing_dots_layers_sources)

Delete the last Asset Point Marker from the Map
Parameters:
Name Type Description
geojson_antennas FeatureCollection Antennas FeatureCollection
geojson_asset_points FeatureCollection Asset Points FeatureCollection
geojson_assetpoints_directions FeatureCollection Asset Points Directions FeatureCollection
geojson_anchors FeatureCollection Anchors FeatureCollection
geojson_lines_of_sight FeatureCollection Lines of Sight FeatureCollection
wall_intersections_points FeatureCollection Map Features Walls Points Intersections FeatureCollection
geojson_walls FeatureCollection Map Features Walls FeatureCollection
pulsing_dots_layers_IDs Array Pulsing Dots IDs Array
pulsing_dots_layers_sources Array Pulsing Dots sources Array

View Source button.js, line 476

# inner doConnect(event)

Connect event handler
Parameters:
Name Type Description
event event

View Source button.js, line 67

# inner doDisconnect(event, client_id, connection_string, geojson_asset_points, geojson_antennas, geojson_anchors, geojson_precison_decimal_places, selectedMapIndex, messageToSend, pulsing_dots_layers_IDs)

Disconnect event handler
Parameters:
Name Type Description
event event
client_id string
connection_string string
geojson_asset_points FeatureCollection Asset Points FeatureCollection
geojson_antennas FeatureCollection Antennas FeatureCollection
geojson_anchors FeatureCollection Anchors FeatureCollection
geojson_precison_decimal_places number Vaule of precison decimal places
selectedMapIndex number index of selected Map
messageToSend string MQTT message to send to the broker
pulsing_dots_layers_IDs Array Pulsing Dots IDs Array

View Source button.js, line 94

# inner toggleAnimationOptionsContainer()

Toggle Animation Options Container

View Source button.js, line 168

# inner toggleConsoleDebugContainer()

Toggle Console Debugger Container

View Source button.js, line 212

# inner toggleCoordinatesAssetPointContainer()

Toggle Coordinates Point Container

View Source button.js, line 139

# inner toggleDistanceRssiContainer()

Toggle Distance & RSSI Point Container

View Source button.js, line 153

# inner toggleMlAgentsContainer()

Toggle ML Agents Container

View Source button.js, line 190

# inner toggleMqttVariablesContainer()

Toggle Mqtt Variables Container

View Source button.js, line 240

# inner toggleRssiPathLossModelContainer()

Toggle RSSI Path Loss Model Container

View Source button.js, line 226