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
After creating an application on the HERE provider, configuring my secrets.yml file, and uncommenting the lines in the decidim.rb file, I installed the module as instructed in the documentation. I created an assembly and assigned it the scopes for geolocation. I activated it in the administration panel to be displayed on the homepage, but still, the map is not being shown to me.
I am working with Decidim 0.27.2 on a local development environment, and for the map provider, I chose HERE, which was recommended by the documentation.
The text was updated successfully, but these errors were encountered:
I closed the issue because I was shown the map with the seeds of the module, but when trying to put my geojson it gives the error of undefined method '[]' for Nil:NilClass
The problem is caused by incorrectly referencing Hash properties with strings/symbols.
One way to fix problem:
In .\app\commands\decidim\admin\update_scope.rb, form.geojson properties should be referenced by string in geojson method.
In .\app\forms\decidim\admin\scope_form.rb :parsed_geometry property of attribute :geoJson should be of type Hash, and in parsable_json method json should be parsed using symbols, not strings, as property names - ie JSON.parse(geometry, { symbolize_names: true })
After creating an application on the HERE provider, configuring my secrets.yml file, and uncommenting the lines in the decidim.rb file, I installed the module as instructed in the documentation. I created an assembly and assigned it the scopes for geolocation. I activated it in the administration panel to be displayed on the homepage, but still, the map is not being shown to me.
I am working with Decidim 0.27.2 on a local development environment, and for the map provider, I chose HERE, which was recommended by the documentation.
The text was updated successfully, but these errors were encountered: