Adding custom geojson to Geomap

Ok. Sorry, just tryin to wrap my mind arount this.

just like you can serve data in a database via rest api, you can also serve file data on disk as rest api but I would not recommend it. these files should really be in a database.
then your rest api for geolocation is served from a database and not a file.

Success!! Using the Orchestra cities and an nginx api conf, i can variable my geojson layers.

Thank for the help.

Took some time but I decided to revisit the topic and the answer was tight there.

Now for the next question, and maybe im over thinking this.

Has anyone built an nginx api to serve up multiple files, ie http://myapi.com/api/file1.geoson,file2.geojson,file3.geojson.

Been battling all day but the best i can get with. Http://myapi/api/$(variable:raw) and 404 messages

Nginx conf is basically

Location {
Alias /my_geojsons/
Try_files $uri

}

Something im missing

1 Like

Hi,

can you please show how the panel is configured?

Do I understand correcttly that you load whole bunch of geojson data and based on user input via variable you filter proper part of map which is then displayed via panel?

thanks
M

That is the idea. But now geomap is coming out beta version dynamic geojson that is very promising but for now I have the data being served from a node rest api

But how the link between Infinity filtered data result is pushed to map layer?

I still don’t get it.
The layer input GeoJSON URL is fixed http address which in default state does not return any GeoJSON data. On variable change the Infinity datasource reads and filters geojson file returning only expected part of file …
What layer type is used in orchestracities panel to render filtered inifity query data - what to put in GeoJSON URL?

thx
Martin

thanks, clear now… I was fixed and focus only on “Map values to GeoJSON file” type not thinking about Markers to be used for polygon drawing…

thanks
m

1 Like

one more question, have you managed to have multiple infinity sources for geojson data?
I created 2 infinity sources each linked to seperate layer but when both queries are enabled the none of the layer is displayed. If I enable query A or B they display correctly but not both at the same time.

PS: same happens if I got coordinates from influx DB query - they are displayed OK if onlty this queries are enabled…
thanks for help
m

Today I lost 5 years of my life but I finally managed.

I think problem was that that plugin comes with default transformation to join series on time. then my dashboard has time based data (route gps from influx) and static/non-time based data - GEOJSON frame

I had to filter and use transformation only on influx queries then all started to show up

m

Did you Try automating the zoom upon variable change? It seems to only work in first load and not after that. Did anyone find a workaround for this?