There are two overloaded procedures to add markers to a map that to not use the parameter Zindex and instead always set it to 0:
function TMarkers.Add(Latitude, Longitude: Double; Title, Icon: string;
Draggable, Visible, Clickable, Flat: Boolean; Animation: TMarkerAnimation; zIndex,
IconWidth, IconHeight: Integer; IconZoomWidth: Integer = -1; IconZoomHeight: Integer = -1): TMarker;
begin
Result := Add(Latitude, Longitude, Title, Icon, Draggable, Visible, Clickable, Flat, Animation, 0, icDefault, IconWidth, IconHeight, IconZoomWidth, IconZoomHeight);
end;
function TMarkers.Add(Latitude, Longitude: Double; Title, Icon: string;
Draggable, Visible, Clickable, Flat: Boolean; Animation: TMarkerAnimation; Zindex: Integer): TMarker;
begin
Result := Add(Latitude, Longitude, Title, Icon, Draggable, Visible, Clickable, Flat, Animation, 0, icDefault, -1, -1);
end;
Draggable, Visible, Clickable, Flat: Boolean; Animation: TMarkerAnimation; zIndex,
IconWidth, IconHeight: Integer; IconZoomWidth: Integer = -1; IconZoomHeight: Integer = -1): TMarker;
begin
Result := Add(Latitude, Longitude, Title, Icon, Draggable, Visible, Clickable, Flat, Animation, 0, icDefault, IconWidth, IconHeight, IconZoomWidth, IconZoomHeight);
end;
function TMarkers.Add(Latitude, Longitude: Double; Title, Icon: string;
Draggable, Visible, Clickable, Flat: Boolean; Animation: TMarkerAnimation; Zindex: Integer): TMarker;
begin
Result := Add(Latitude, Longitude, Title, Icon, Draggable, Visible, Clickable, Flat, Animation, 0, icDefault, -1, -1);
end;