Difference between usage tt.Marker() and tomtom.L.marker

Hi guys i hope be all fine!

Could a good soul clarify for me how to replace the follow example:

marker = tomtom.L.marker(new tomtom.L.LatLng(point[0], point[1]), { title: title, icon: markerOptions.icon });

with the new API:

var marker = new tt.Marker().setLngLat([".$row[‘longitude’].",".$row[‘latitude’]."],‘title:title’).addTo(map);

Thank you for your help!

Hi Alan,

What are you struggling with? Because I can see that you already created some code with the new SDK.