AnsweredAssumed Answered

Add features at certain scales to Android App

Question asked by beatpedo on Aug 6, 2014
Latest reply on Aug 11, 2014 by WCrick-esristaff



I have designed an application to collect the location of bamboo species. However, I want to ensure that users are at the appropriate scale before adding points. I wanted to check the scale before allowing the menu to select features to be created:




  public boolean onCreateOptionsMenu(Menu menu) {

    // Inflate the menu items for use in the action bar

              if (mMapView.getScale()<25) {


                  "Please zoom in to Add Bamboo Features",Toast.LENGTH_LONG).show();


              else mMapView.getScale();

              MenuInflater inflater = getMenuInflater();

              inflater.inflate(, menu);

              mOptionsMenu = menu;



              return super.onCreateOptionsMenu(menu);