Magnifier didn't turn off in SDK 10.2.2 and 10.2.3

3538
3
05-28-2014 09:16 PM
LamSally
New Contributor
Hi,

we found a problem that sometimes Magnifier didn't turn off when finger leave the screen.

To regenerate the problem,
simply use Basemaps sample program and add a button in main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical">

  <!-- MapView layout and initial basemap and extent. -->

    <Button
        android:id="@+id/magnifier"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:onClick="toggleMagnifier"
        android:text="Magnifier Off" />

  <com.esri.android.map.MapView
    android:id="@+id/map"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    mapoptions.MapType="Topo"
    mapoptions.ZoomLevel="13"
    mapoptions.center="33.666354, -117.903557" />

  
</LinearLayout>



and in com.arcgis.android.tutorial.basemaps.BasemapsActivity.java
add a function to on/off magnifier
  public void toggleMagnifier(View view) {
  if ( mMapView.isShowMagnifierOnLongPress() == true) {
   ((Button) view).setText("Magnifier Off");
   mMapView.setShowMagnifierOnLongPress(false);
  }
  else {
   ((Button) view).setText("Magnifier On");
   mMapView.setShowMagnifierOnLongPress(true);
   mMapView.setAllowMagnifierToPanMap(true);
  }
  }


After run the program,
1. click the button the enable the magnifier

2. long press the map and magnifier appear, keep hold on the same position for a while.

3. When the finger leaves the screen,
sometimes the magnifier still keeps in screen and does not turn off as the first attached image.

4. click the button to disable the magnifier(where mMapView.setShowMagnifierOnLongPress(false) would be called),
the magnifier still appear as the 2nd attached image.

Besides waiting for the next release to fixed this problem,
is there any workaround solution to remove the magnifier?

Thank you for your help!

Sally
0 Kudos
3 Replies
by Anonymous User
Not applicable
Original User: sgillUS

Besides waiting for the next release to fixed this problem,
is there any workaround solution to remove the magnifier?


I'm afraid I don't know any workarounds in the current release, the issue happens when the long-press gesture ends and the pointer has not moved a single pixel from it's beginning location (harder to see on higher-res displays, easier to find this on lower-res displays). However this is a known issue that will be fixed in the next release.
0 Kudos
LamSally
New Contributor
Dear Shelly Gill,

Thanks for you reply.

And grateful if you can include different size of magnifier lens for different dpi devices instead of 2 size too.

Thank you!

Sally
0 Kudos
by Anonymous User
Not applicable
Original User: sgillUS

Hi Sally,

If you are keen to get specific enhancements into the product, a good place to go is the ArcGIS Ideas site, and submit them there:
http://ideas.arcgis.com/ideaList?c=09a300000004xET&category=ArcGIS+Runtime

Describe exactly what it is you're after, in terms of the problem you're trying to solve (is the magnifier too big on certain devices? Too small on others?). Also, you can vote up or down other's suggestions, based on how important they are to you.
0 Kudos