Can somebody help me how to implement the tt.IncidentMarker (in V5) pelase? I can’t figure out how it works.
I am trying to get all the incidents on my map. That it shows the icons for accident, blocked roads etc. etc… According to documentatin that is done with the tt.IncidentMarker(). But I am unable to find out the working of the class tt.IncidentMarker. Where ever I implement or call it, my code allways throws an error that IncidentMarker() is not a constructor. Is it something that is called from tt.Marker? I doubt it, because tt.IncidentMarker is a seperate class, and tt.marker extends the tt.events. I am just lost.
In the documentation, examples from V3, V4, and V5 I am unable to find a example or solution.
Now If you want to present custom icons from a list of traffic incidents and you’re having issues with tt.incidentMarker() would it be possible to have a code snippet?
Where did you found the part of adding this style sheet? I reread the Web SDK part V5, but I can’t find it back. Also the part what S1, S2, and S3 means is something I can’t find back.
The IncidentMarker class is used internally by trafficIncidentTier, it was not meant to be used separately, we document it so that the users know what options are available for it. You can pass options to this class in the incidentDetails property of the options passed to trafficIncidentTier.
We will make this more clear in the documentation.