AnsweredAssumed Answered

Restrict Map Panning area and display area

Question asked by supriyashah on Aug 5, 2018

Hi,

I want to restrict my map to particular area. Don't want to display whole world map,also want to restrict pan of map also.Using ArcgisruntimeAndroid API.

 

Following code snippet is not helping as its not available for arcgisruntime android API .

Any help will be appriciated.

 

Envelope myExtents = new Envelope(xmin,ymin,xmax,ymax);
myExtents = (Envelope) GeometryEngine.project(myExtents, SpatialReference.create(102100), mMapView.getSpatialReference());
mMapView.setMaxExtent(myExtents);
mMapView.setExtent(myExtents);

 

Thanks in advance

Outcomes