Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

83
Views
Here Map - setZoom add Zoom duration

Here map add zooming duration.

When zooming to a location, the zoom is instant. It would be nice to zoom with duration.

public zoomAt(zoom = 11, center: { lat: number; lng: number}) {
    this.map.setCenter(center);
    this.map.setZoom(zoom);
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

There is an optional parameter to animate the zoom:

public zoomAt(zoom = 11, center: { lat: number; lng: number}) {
    this.map.setCenter(center);
    this.map.setZoom(zoom, true);
}

See the API Reference of setZoom. It seems not possible to specify the duration of the animation to the setZoom method, however if the default duration does not suit, you can maybe take advantage of the method control on this.map.getViewModel() and in particular its moveZ property, which represents "the movement along the z-axis in zoom-levels per second".

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!