- Issue created by @bad.shape.guy
- 🇬🇧United Kingdom ken-g
Hi @bad.shape.guy,
This error is almost certainly caused by the fact that you are not passing any value from your new text field in the Circle.php form into the Circle.js plugin.
Have you edited the relevant style used by the map and made sure that there is a value saved in the relevant text field ? Specifically, you need to check your new text field in the "GEOMETRY CIRCLE" section. Also, you need to ensure that you have ticked "Enable this geometry type ?" in the same section of the circle configuration.
Does this help ?
Hello ken-g, thanks for the reply!
It turns out the problem was the missing default settings in the files
/includes/openlayers.default_openlayers_styles.inc /modules/openlayers_geofield/includes/openlayers_geofield.default_openlayers_styles.inc
As I understood in the file
\src\Plugin\Style\Circle\Circle.php
a form is being processed that puts the settings in the database, but by default it initially expects to get them from the code where they were just missingAs a result, I similarly set up
Text
in these files and the problem disappearedIssue can be closed. The only question is, why is the style called Circle? =) Why not polygon, shape, geometry? After all, anything is drawn there, but not a circle =) Or does this concept come from the Openlayers library itself?