tulov / angular-yandex-map

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

hintContentLayout options gives an error #30

Open mxl opened 9 years ago

mxl commented 9 years ago

Custom template for hint gives Uncaught TypeError: Cannot read property 'getModuleSync' of null error in Google Chrome console and hint does not show up. But balloonContentLayout works. My code:

 <ya-template-layout ya-key="orderBalloonTemplate">
            <div class="ya-balloon">
                <span class="field-label">Адрес:</span> {{properties.orderFromAddress}}<br/>
                <span class="field-label">Время:</span> {{properties.orderTime}}<br/>
                <span class="field-label">Клиент:</span> {{properties.clientName}}<br/>
                <span class="field-label">Комментарий:</span> {{properties.clientComment}}
            </div>
        </ya-template-layout>
        <ya-template-layout ya-key="orderHintTemplate">
            <div class="ya-hint">
                <b>{{properties.orderFromAddress}}</b><br/>
                {{properties.orderTime}}<br/>
            </div>
        </ya-template-layout>
        <ya-map ya-zoom="12" ya-type="yandex#map" ya-center="{{ map.center }}">

            <ya-geo-object ng-repeat="o in geoOrdersFrom" ya-source="o"
                           ya-options="{preset:'islands#blueStretchyIcon', hintContentLayout:'orderHintTemplate', balloonContentLayout:'orderBalloonTemplate'}"
                           ya-event-mouseenter="orderHintShow(o.orderId)"
                           ya-event-mouseleave="orderHintHide()"></ya-geo-object>

            <ya-geo-object ng-repeat="o in geoOrdersTo | filter:{orderId:mapSelectedOrderId}"
                           ya-options="{preset:'islands#redStretchyIcon'}"
                           ya-source="o"></ya-geo-object>

            <ya-geo-object ng-repeat="o in geoDrivers" ya-options="{preset:'islands#orangeStretchyIcon'}"
                           ya-source="o"></ya-geo-object>

        </ya-map>
mirotincev commented 8 years ago

Такая же фигня =(

laptevshr commented 8 years ago

Тож негодую :(

numbata commented 8 years ago

+1 к негодованию

tulov commented 8 years ago

лучше бы разобрался кто в чем причина... Я не в состоянии поддерживать проект в одиночку.