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

188
Views
How can I add an icon to google maps waypoints?

I am developing a google maps application. I added waypoints but I want to give a different icon. (instead of white circles)

here is my request code:

enter image description here

return {

          location: {
            lat: parseFloat(element.per_add_lat),
            lng: parseFloat(element.per_add_long),
          },
          stopover: element.personel_id != -1 ? true : false,
        };

    var request = {
      origin: start,
      destination: end,
      optimizeWaypoints: true,
      avoidHighways: false,
      unitSystem: google.maps.UnitSystem.METRIC,
      travelMode: "DRIVING",
      waypoints: waypoints,
    };
    console.log("waypoint", request);
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If you use DirectionsRenderer class to render your route, you can define markerOption parameter which will change all the icons. If you want to have a different icon on every waypoint look here - but overall you will have to create markers separately

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!