Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Infowindow flickering on mouseover #1786

@leena-bhise

Description

@leena-bhise

I am using ui-gmap-google-map to implement map on my application. my code is below :

<ui-gmap-google-map center="{ latitude: 0, longitude: 0 }" zoom="3" id="scheduler-map" bounds='map.map.bounds' control="map.gmap">
<ui-gmap-markers ng-if="map.positions" events="markersEvents" models="map.positions" idKey="'p_id'" coords="'position'" options="'options'" click="closeClick; ">
<ui-gmap-window closeClick="closeClick" options="windowOpt" show="windowOpt.show" templateUrl="'pos-info.html'" templateParameter="windowParams"></ui-gmap-window>
template code
<div class='popup' ng-class="{'set-width': parameter.isDataPresent}">
  <h5>{{parameter.name}}</h5>
  <b ng-if='parameter.driver'>Driven by</b>
  <div>
   {{parameter.driver.display_name}}
 </div>
 <div class='data-msg' ng-if="parameter.isDataPresent">
   This vehicle may be inactive. We have not received an updated position location from it since    <b>{{parameter.createdAt | date: 'MMM dd HH:mm'}} ({{parameter.createdAt | timeAgo}})</b>
 </div>
</div>

css :
.set-width {
width: 100px;
}

Here I applied mouseover / mouseout events on marker to show infowindow. when I hover on marker infowindow flickered. As I noticed it is due to dynamic width (from set-width class).

Please see attached video : https://youtu.be/ag6m97rGrBA

Any suggestion on this.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions