Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70754

How to fix map wobbles during scrolling

$
0
0

@rizwan478 wrote:

I am working on ionic 4 app.in my application Map section on venue page wobbles when moving at the moment if i scroll quick enough the map follows the screen and appears sticky. I dont know how to fix this issue. Any help would be appreciated. My code for html is as follow

<div style="position: fixed; height: 30vh ;width: 100%">
        <div  id="map_canvas" ></div>
    </div>

and .ts code is as follow

 loadMap() {
        const location = new LatLng(this.venue.latitude, this.venue.longitude);

        this.map = GoogleMaps.create('map_canvas', {
            camera: {
              target: location,
              zoom: 18,
              tilt: 0
            }
        });

        const marker: Marker = this.map.addMarkerSync({
            title: this.venue.name,
            snippet: this.venue.strapline,
            position: location,
            animation: GoogleMapsAnimation.BOUNCE
        });
    }

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70754

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>