Bases map view in single note

What I’m trying to do

I’ m trying to show a Bases map view on a single note which includes location data. The view filter works correctly but I see only the header of the view. No map is shown. My other view which shows all notes for a specific tag shows correctly.
Are there any limitations to show a map view for the note itself with filter file == this.file

Things I have tried

I converted the view from map to table. The correct row is shown.
When I go back to map view it looks like this:

- type: map-view-plugin
    name: Distilleries Map Single
    filters:
      and:
        - file == this.file
    order:
      - file.name
      - Owner
      - Region
      - Country
      - location
    columnSize:
      file.name: 339
      note.Owner: 220
      note.Region: 102
    mapCenter: 38.41055825094609,-86.45361471596473
    mapZoom: 3
    markerLabels: left
    showLinks: true

Hi.

I don’t use map view, but wondered if your code would work with:

file.name == this.file.name
1 Like

Ok, listen, i feel stupid. I got confused by the different map plugins. I had the plugin “Map Views” already installed and thought it was the right one.

For map views in Bases you need the “Maps” plugin and not the “Map Views” plugin. Then with a filter like @anon5277159 recommended `file.name == this.file.name` a nice embedded map can be added to a note.

Maybe this helps somebody else

1 Like