Open mxl opened 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:
Uncaught TypeError: Cannot read property 'getModuleSync' of null
balloonContentLayout
<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>
Такая же фигня =(
Тож негодую :(
+1 к негодованию
лучше бы разобрался кто в чем причина... Я не в состоянии поддерживать проект в одиночку.
Custom template for hint gives
Uncaught TypeError: Cannot read property 'getModuleSync' of null
error in Google Chrome console and hint does not show up. ButballoonContentLayout
works. My code: