marker - Google maps DirectionsRenderer -


i'm looking change marker icons of google map, while creating path using directionsrenderer. trying that, followed following steps.

  • created 2 icons start point , end point.
  • in rendereroptions set suppressmarkers: false
  • then placed 2 marker start point , end point of path

so have customary created icons @ 2 ends.

but requirement these markers should draggable. set draggable: true , working fine.

but problem while dragging icon, path should changed dynamically, should similar of https://google-developers.appspot.com/maps/documentation/javascript/examples/directions-draggable

i tried adding listeners 2 markers : "drag" event - , while dragging marker, draw path @ same time. result i'm getting not similar "directions-draggable" example. in facts, although can render paths, drawn paths still exist on map. clearing paths exist on map , re-draw not requirement.

so there way same result/effect "directions-draggable" while changing marker icons.

thanks in advance...

this example of directions using custom icons draggable developed before draggable directions functionality introduced.


Comments

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -