MapQuest Maps Android SDK

Customize Styles

MapQuest's map styles are beautiful, informative, and provide the best experience for customers. However if you need to customize the styles, our SDK provides a way to do that.

After the style has loaded you can customize the styles by accessing a layer and then setting its property.

Red Buildings
mMapView.getMapAsync(mapboxMap -> {
    mMapboxMap = mapboxMap;
    mMapView.addOnMapChangedListener(change -> {
        if (change == DID_FINISH_LOADING_STYLE) {
            FillLayer fillLayer = (FillLayer) mMapboxMap.getLayer("building");
            if (fillLayer != null) {
                fillLayer.setProperties(
                        PropertyFactory.fillColor(Color.RED)
                );
            }
        }
    });
});