Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Combine clusters with windows in a clean fashion? #408

@netsensei

Description

@netsensei

Hello,

I'm looking at this use case:

  • Markers need to be (un)clustered on different zoom levels
  • When you click on an individual marker, you need to see a popup with detailed info.

(The info is hooked to the marker object through the controller scope on init.)

Problem: how do I approach this with the directives I have available? Can I do something like this? (pseudocode)

<markers models="map.Markers" coords="'self'" doCluster="true">
  <windows>
      <div class="storePopup">
          <h2> {{marker.name}}</h2>
         <p>{{marker.line}}</h2>
       </div>
   </windows>
</markers>

With this code, the clustering works, but the info popups don't work.
name and line are a custom properties set from the parent controller.

Either:
I could go with the 'marker' directive with ng-repeat + window directive instead, which will make work perfectly, but then I won't be able to use the clustering.

Or:
I can use the markers directive, but I don't really see how this could be combined with window or windows to make those popups work.

Any ideas?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions