-
Notifications
You must be signed in to change notification settings - Fork 8
AnsynApi Functions
after we inject the AnsynApi service in our component we can use ansynApi
functions for change things in out app.
set the map position to the point coordinate
a geoJson point
change the layout of the maps
could be one of the follow:
layout1
- show one map.
layout2
- show 2 maps side by side horizontally.
layout3
- show 2 maps side by side vertically.
layout4
- show 3 maps, one on left and 2 smaller on the right vertically.
layout5
- show 3 maps one on top and 2 smaller on bottom horizontally.
layout6
- show 4 maps.
display the overlay on the map.
an overlay object
minimize/maximize the side menu
boolean, true for minimize false for maximize.
minimize/maximize the timeline-status-bar
boolean, true for minimize false for maximize.
add the layer to app data layers
return the layer id.
string, the display layer name
a geoJson FeatureCollection
boolean, true if the layer could be editable, false otherwise.
remove the layer with the layerId
from the app data layers
string, the layer id to be remove.
show/hide the layer with the layerId
string, the layer id to be show/hide
boolean, true to show the layer, false to hide the layer.
return the overlay data currently display on the map with the mapId.
string, the id of the map which from to get the overlay data or the active map if id not provide.
return the current mapPosition
return all the overlays currently on the timeline.
draw the annotations on the map.
click here for more details on the features object.
put the overlays on the timeline status bar.
an array of overlay
set the position of the map to point
with radius
a geoJson point.
number, the radius in meters.
boolean, if true the app search for overlays in the position.
set the map position to the follow rect.
a geoJson polygon
rotate the map by degree
a number between 0-360.
the id of the map to be rotate or the active map if not provide.
set a shadow mouse indicator on the geoPoint
coordinate
a geoJson point
change the search criteria and apply a new search
a search criteria object.
number, radius to be add to the region
criteria.
set the app to minimalist view
boolean, true to enable minimalist view, false to disable.
clear all the annotations from the map.