Hello,
Still I couldn't get any result importing postgis layer directly form the
database with hover or click functionality, I have tried with the river
example. I have checked all the steps and also the errors but I would
apreaciate if someone can point in some direction.
Those are the error I got when I run python manage.py packages -o
add_mapbox_layer -j 'poly_testing.json' -n 'test' or for the sample of
river python manage.py packages -o add_mapbox_layer -j 'rivers.json' -n
'river' instead of add_tile_server.
No module named 'arches.settings_local'
Error attempting to load settings from relative '.settings_local'.
Attempting 'arches.settings_local' import
Error attempting to load settings from 'arches.settings_local.py'.
No module named 'arches.settings_local'
operation: add_mapbox_layer
Traceback (most recent call last):
File "manage.py", line 30, in <module>
execute_from_command_line(sys.argv)
File
"/home/gabriel-ubuntu/Projects/ENV/lib/python3.8/site-packages/django/core/management/__init__.py",
line 381, in execute_from_command_line
utility.execute()
File
"/home/gabriel-ubuntu/Projects/ENV/lib/python3.8/site-packages/django/core/management/__init__.py",
line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/home/gabriel-ubuntu/Projects/ENV/lib/python3.8/site-packages/django/core/management/base.py",
line 323, in run_from_argv
self.execute(*args, **cmd_options)
File
"/home/gabriel-ubuntu/Projects/ENV/lib/python3.8/site-packages/django/core/management/base.py",
line 364, in execute
output = self.handle(*args, **options)
File
"/home/gabriel-ubuntu/arches/arches/management/commands/packages.py", line
282, in handle
self.add_mapbox_layer(
File
"/home/gabriel-ubuntu/arches/arches/management/commands/packages.py", line
1152, in add_mapbox_layer
for source_name, source_dict in data["sources"].items():
KeyError: 'sources'
Thanks in advance
On Thursday, 22 October 2020 at 12:42:27 UTC+1 Gabriel Contreras wrote:
> Hello,
>
> I am adding some layers to my arches project, I have added some samples
> using geoserver using postgis as WMS services.
> I would like to have the same layer but having the capability of popup
> information from each feature.
>
> I have tried to add it by using the example and adding it following this
> instructions in arches documentation
> <https://arches.readthedocs.io/en/stable/creating-new-map-layers/>, but I
> am missing something and is not working, I have tried with the samples
> provided in arches-4-example
> <https://github.com/archesproject/arches4-example-pkg/tree/master/map_layers/tile_server/overlays/vector_example>
> for
> vector examples, but still something I am missing.
>
> I run the SQL query for the table poly_testing and to add the source I
> have tried both way, adding directly the source to django administration
> and the layer ()
>
> [image: Screenshot from 2020-10-22 12-33-52.png]
>
> [image: Screenshot from 2020-10-22 12-33-34.png]
>
>
>
> And also running the scrypt from the same folder where the
> poly_testing.json and meta.json are located :
>
> python manage.py packages -o add_mapbox_layer -j poly_testing.json -n
> "poly_testing"
>
> NExt step I will try is to customize map popup.
>
>
> Than you very much in advance.
>
> Best
>
--
-- To post, send email to [email protected]. To unsubscribe, send
email to [email protected]. For more information,
visit https://groups.google.com/d/forum/archesproject?hl=en
---
You received this message because you are subscribed to the Google Groups
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/archesproject/867232c5-3f16-4f62-95a2-31aa65907aabn%40googlegroups.com.