tulov / angular-yandex-map

AngularJS directive to work with Yandex maps
173 stars 58 forks source link

Compile error #32

Open bushev opened 9 years ago

bushev commented 9 years ago

Hello!

How to fix this?

"Controller 'yaMap', required by directive 'yaGeoObject', can't be found!"

yaMap does'n used in this directive, can I remove "yaMap" from require statement?

bushev commented 9 years ago

Occures with '' in HTML code:

<ya-map ya-zoom="10" ya-controls="smallMapDefaultSet" ya-center="{{yaMap.center}}">
    <ya-cluster>
        <ya-geo-object ng-repeat="o in yaMap.geoObjects" ya-source="o"></ya-geo-object>
    </ya-cluster>
</ya-map>
LennyLip commented 9 years ago

Change yaMap.geoObjects to geoObjects (which must located in $scope).

geoObjects just a variable.

I think it's not a bug,