new component_()
Provides a text input and draw interaction to allow a user to create and modify a ol.Feature (point geometry).
The text input is provided by ngeo.nominatimInputComponent
and includes Nominatim search.
Example:
<ngeo-routing-feature
ngeo-routing-feature-map="ctrl.map"
ngeo-routing-feature-feature="ctrl.feature"
ngeo-routing-feature-fill-color="#6BE62E"
ngeo-routing-feature-stroke-color="#4CB01E"
ngeo-routing-feature-on-change="ctrl.handleChange">
Is used in in the partial of ngeo.routingComponent
.
See the ../examples/routing.html example for a usage sample.
HTML attributes:
Name | Type | Description |
---|---|---|
ngeo-routing-feature-map |
ol.Map | The map. |
ngeo-routing-feature-feature |
ol.Feature | The feature. |
ngeo-routing-feature-fill-color |
string | The marker fill color. |
ngeo-routing-feature-stroke-color |
string | The marker stroke color. |
ngeo-routing-feature-on-change |
function | Event fired when feature changes. |