1 year ago

#310152

test-img

Abdul Hannan Anik

Implement latitude and longitude in mapbox locationcomponent

I want to add Latlng or Point inside locationcomponent function in mapbox. How can I add this. I am using android studio and java.

            LatLng latboy1 = new LatLng(23, 90);
            Point origin1 =Point.fromLngLat(34,32);
            
            locationComponent = mapboxMap.getLocationComponent();
            locationComponent.activateLocationComponent(
                    LocationComponentActivationOptions.builder(this, loadedMapStyle)
                            .build());

location

mapbox

mapbox-marker

0 Answers

Your Answer

Accepted video resources