You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move the commented lines below from map-popup-provider.js:
define([
'arches',
'knockout',
'turf',
'templates/views/components/map-popup.htm'
], function(arches, ko, turf, popupTemplate) {
...
sendFeatureToMapFilter: function(popupFeatureObject)
{
let feature = popupFeatureObject.geometries()[0].geom.features[0];
// Note that polygons with very high vertex-counts can benefit from simplification.
// To use turf.js library, uncomment the next 3 lines:
// const tolerance = 0.1; // Degree of Simplification: Lower numbers are less simplified, preserving more detail
// const highQuality = true; // Set to true for a slower but higher quality simplification
// turf.simplify(feature.geometry, {tolerance: tolerance, highQuality: highQuality, mutate: true});
popupFeatureObject.mapCard.filterByFeatureGeom(feature, popupFeatureObject.resourceinstanceid);
},
into the documentation in a section ostensibly titled "Simplifying polygons (with high vertex-count) on the frontend" and provide as a code example the above implementation, along with
please add links to existing docs or code (if relevant)
which release does this issue concern?
7.6
The text was updated successfully, but these errors were encountered:
describe the issue
Move the commented lines below from
map-popup-provider.js
:into the documentation in a section ostensibly titled "Simplifying polygons (with high vertex-count) on the frontend" and provide as a code example the above implementation, along with
please add links to existing docs or code (if relevant)
which release does this issue concern?
7.6
The text was updated successfully, but these errors were encountered: