I am using the android-sdk-legacy SDK of Mapbox which is not supported. The access token from the Mapbox Website is not fetching the tiles.
Purpose: It supports clustered markers on the Mapbox.
Error: Could not fetch tiles because it could not validate Certificate and it was expired on 14Dec 2015.
Does it mean that this SDK can't be used at all? Also, can I use the SDK and host my own map server using Mapbox-gl-native for Android
Please Help.
Okay, this was the basic implementation of the Mapbox 0.7.4 version
EDIT:
public class MainDiscoverFragment extends android.app.Fragment{
private MapView mapView ;
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_main_discover, container, false) ;
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
init(view) ;
setInit() ;
LatLng location = new LatLng(20.593684, 78.9628800) ;
mapView.getOverlays() ;
Marker marker = new Marker(mapView, "Abhinav Das", "Active 10hours ago", location) ;
mapView.addMarker(marker);
}
private void init(View view) {
mapView = (MapView) view.findViewById(R.id.discover_mapview) ;
}
private void setInit() {
MapView mapView = new MapView(getActivity());
mapView.setAccessToken(getResources().getString(R.string.mapbox_access_token));
mapView.setTileSource(new MapboxTileLayer("mapbox.streets"));
}
}