Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

NgMap.getMap( segmentId ) not working if id attr contains expression #873

Open
tomcat86 opened this issue Aug 7, 2018 · 0 comments
Open

Comments

@tomcat86
Copy link

tomcat86 commented Aug 7, 2018

My map is defined as:
<ng-map id="{{box.id}}_map" center="{{box.center}}"></ng-map>

Ng.getMap( "4342342_map" ) can however not return this map, because in addMap the mapCtrl.map.id is undefined. I could debug so far, but I don't know how to fix this to be honest. I guess the expression is not being evaluated.

  var addMap = function(mapCtrl) {
    if (mapCtrl.map) {
      var len = Object.keys(mapControllers).length;
      mapControllers[mapCtrl.map.id || len] = mapCtrl;
    }
  };
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant