Hi all,
Is it possible to integrate the Editor Widget and Measure Widget so that when a new feature is being drawn, the measurements are automatically being displayed? I have not been able to successfully implement this.
Any insights would be appreciated!
Solved! Go to Solution.
Hi @GraceTortorici_ - we added support for tooltipOptions on the Editor widget at version 4.24, which will display area and length measurements in a tooltip when creating or editing a feature. To enable this, follow the code snippet shown below:
const editor = new Editor({
view: view,
layerInfos: [pointInfos, lineInfos, polyInfos],
tooltipOptions: {
enabled: true
}
});
Here's an example: https://codepen.io/annefitz/pen/dyqmrLd?editors=1000
Hi @GraceTortorici_ - we added support for tooltipOptions on the Editor widget at version 4.24, which will display area and length measurements in a tooltip when creating or editing a feature. To enable this, follow the code snippet shown below:
const editor = new Editor({
view: view,
layerInfos: [pointInfos, lineInfos, polyInfos],
tooltipOptions: {
enabled: true
}
});
Here's an example: https://codepen.io/annefitz/pen/dyqmrLd?editors=1000
Hi @AnneFitz, is there a way to change the units from m and km to feet using the tooltip option? I tried using
linearUnit: "feet",
areaUnit: "square-feet"
but this was not successful. Unfortunately not finding any documentation on this. Thanks so much!
This is currently a limitation - we are still working on the tooltip functionality and will add the ability to change the units at an upcoming release! Stay tuned.
¿en qué versión estará disponible?
What version will it be available in?
@AnneFitz thanks so much, this is perfect!