Closed rifkysyaripudin closed 7 years ago
Done.
I modified library after directionsDisplay.setDirections(response);
adding code
if ($this->directionsStartIcon) {
$this->output_js_contents .= 'createMarker_' . $this->map_name . '({position: leg.start_location, icon: "' . $this->directionsStartIcon . '", map: ' . $this->map_name . '});';
}
if ($this->directionsEndIcon) {
$this->output_js_contents .= 'createMarker_' . $this->map_name . '({position: leg.end_location, icon: "' . $this->directionsEndIcon . '", map: ' . $this->map_name . '});';
}
Halo, how to change default icon directions with my icon?