When i click on a marker
, the info window
shows in top left corner but it should display at top of the marker.
this is image of the situation : https://i.stack.imgur.com/GHHDE.png
this element style should be set left and top css property dynamic for every marker's infoWindow. but if you look at generated element, you see there is no left or top css property...
<div class="ng-map-info-window"
style="cursor: default;
position:absolute;
width: 110px;
height: 84px;>
any idea ?
------ update (insert code)
this is my angularjs controller for show and hide the info window
vm.showDetail = function (e, p) {
vm.p = p;
vm.map.showInfoWindow('foo-iw', p.locationId);
};
vm.hideDetail = function () {
vm.map.hideInfoWindow('foo-iw');
};
and this is my ui
<marker id='{{p.locationId}}'
ng-repeat="p in locations track by $index"
position="[{{p.locationX}},{{p.locationY}}]"
on-click="vm.showDetail(p)">
<marker>
<info-window id="foo-iw">
<div ng-non-bindable="">
id: {{vm.p.locationId}}<br/>
name: {{vm.p.locationName}}<br/>
<a href="#" ng-click="vm.clicked()">Click Here</a>
</div>
</info-window>