Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hintContentLayout options gives an error #30

Open
mxl opened this issue Oct 4, 2014 · 4 comments
Open

hintContentLayout options gives an error #30

mxl opened this issue Oct 4, 2014 · 4 comments

Comments

@mxl
Copy link

mxl commented Oct 4, 2014

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
Copy link

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

@laptevshr
Copy link

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

@numbata
Copy link

numbata commented Mar 17, 2016

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

@tulov
Copy link
Owner

tulov commented Mar 18, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants