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

174
Views
Here maps: onclick add Curved line between two points using Here maps?

Here Added code for on click draw polyline between 2 points. Need to help how we can add curve/arc line between two geo location.

          // add map
          var defaultLayers = this.platform.createDefaultLayers();
          var map = new H.Map(document.getElementById('map'),
            defaultLayers.vector.normal.map,{
               center: {lat:21, lng:72},
               zoom: 7,
               pixelRatio: window.devicePixelRatio || 1
            });
            var lineString = new H.geo.LineString();
            const mapevents = new H.mapevents.MapEvents(map);

            // enable the tap event system
            this.map.addEventListener("tap", (event: any) => {
              const position = map.screenToGeo(event.currentPointer.viewportX, 
              event.currentPointer.viewportY);
              const marker = new H.map.Marker(position);
               map.addObject(marker);

              //push point to strip
              lineString.pushPoint(position);
              console.log(this.lineString);

              //create the line
              map.addObject(new H.map.Polyline(
                lineString, { style: { lineWidth: 4 }}
              ));
            })```
about 4 years ago · Juan Pablo Isaza
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!