Views. Google Map Multiple Layers from content types/paragraphs using attachments. Setup?

Created on 14 April 2021, over 3 years ago
Updated 21 September 2024, 2 months ago

Problem/Motivation

Hello.

I have tried using a View page/block/attachment to get additional Geolocation layers to render ontop of the base map (Geolocation CommonMap).
The additional layers(long,lat) can come from another content type or a paragraph relationship.

The base map works as intended but none of the additional layers from an attachment(placed before) show on the map.

Steps to reproduce

The simplest setup I have tried.

1. Create views page or block using Geolocation CommonMap format.
2. Add Content: title and Content: Address field using Geolocation Lat/Lng formatter.

Map displays markers on the base map perfectly.

3. Duplicate current block as an attachment. Attach before Geolocation CommonMap block.
4. Change Format to Geolocation Layer.
5. Change filters to pull lat/long from another content type/or specific node.

From here I do not get the additional lat/long markers from the Geolocation Layer.

The Geolocation Layer does output in the rows in HTML.

I have included the HTML markup. Hopefully it is easy enough to follow. The last screenshot shows both rows with their individual lat/long.

Notes:
I have tested using the Bartik theme with the same results.
There are no javascript errors in the console.

Thanks for any help, much appreciated.

💬 Support request
Status

Postponed: needs info

Version

3.2

Component

Geolocation Field / Backend

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom effortDee

    Did you ever get this to work? I'm currently trying to do exactly this and show multiple paragraph types within a route content type to show points of interest on that route and struggling to get the geolocation layer to show anything on top.

  • Status changed to Postponed: needs info 2 months ago
  • 🇩🇪Germany christianadamski Berlin, Germany

    Hey,

    if you really want to work with multiple layers, v4 might work much better. You can create layers freely in views there or provide them custom in code. Also the features on the map can be added on a per-layer basis.

    v4 is still WIP though.

    Ok?

Production build 0.71.5 2024