Angular $http service.
The Angular $q service.
Angular rootScope.
Angular injector.
Angular timeout service.
Group that contains file data sources.
Snapping configuration options for the features in the Draw tool and in the "Layer Import / Local" tool.
The gmf Themes service.
The gmf TreeManager service.
Collection of features.
The options.
A cache for the File data sources that are added in the FileGroup, i.e. for example when a KML is added, then a File data source is added to the FileGroup's collection, and their features need to be snappable.
A cache containing all available snappable items, in which the listening
of the state of the treeCtrl
is registered and unregistered.
Reference to the promise taking care of calling all GetFeature requests of the currently active cache items after the map view changed. Used to cancel if the map view changes often within a short period of time.
A reference to the OGC servers loaded by the theme service.
In order for a ol.interaction.Snap
to work properly, it has to be added
to the map after any draw interactions or other kinds of interactions that
interacts with features on the map.
This method can be called to make sure the Snap interactions are on top.
Get the OGC server.
The OGC server.
The layer tree controller
Get the configuration required to do WFS requests (for snapping purpose) from a Layertree controller that has a leaf node.
The following requirements must be met in order for a treeCtrl to be considered supporting WFS:
type
property is equal to WMS
childLayers
property, the queryable
property is set
to true
wfsSupport
property set to true
.The configuration object.
The layer tree controller
The layer tree controller
New value for the layer
True if state is on and snapping is activated for that layer.
The layer tree controller
Registers a newly added Layertree controller 'leaf'. If it's snappable, create and add a cache item with every configuration required to do the snapping. It becomes active when its state is set to 'on'.
Layertree controller to register
Generated using TypeDoc
The snapping service of GMF. Responsible of collecting the treeCtrls that support snapping and store them here. As soon as a treeCtrl state becomes 'on', a WFS GetFeature request is issued to collect the features at the map view location. A new request is sent every time the map is panned or zoomed for each treeCtrl that are still 'on'.
Features returned by these requests get bound to a
ol.interaction.Snap
, which allows the snapping to occur on other places where vector features are drawn or modified.Ng Inject
Ngdoc
service
Ngname
gmfSnapping