6.3.2.12.3. EditLayerOverlay

public class EditLayerOverlay extends Overlay implements MapViewEventListener, GpsEventListener

The class for edit vector features

6.3.2.12.3.1. Fields

6.3.2.12.3.1.1. BUNDLE_KEY_HAS_EDITS

protected static final String BUNDLE_KEY_HAS_EDITS

6.3.2.12.3.1.2. BUNDLE_KEY_MODE

protected static final String BUNDLE_KEY_MODE

Store keys

6.3.2.12.3.1.3. BUNDLE_KEY_OVERLAY_POINT

protected static final String BUNDLE_KEY_OVERLAY_POINT

6.3.2.12.3.1.4. MODE_CHANGE

public static final int MODE_CHANGE

6.3.2.12.3.1.5. MODE_EDIT

public static final int MODE_EDIT

6.3.2.12.3.1.6. MODE_EDIT_BY_TOUCH

public static final int MODE_EDIT_BY_TOUCH

6.3.2.12.3.1.7. MODE_EDIT_BY_WALK

public static final int MODE_EDIT_BY_WALK

6.3.2.12.3.1.8. MODE_HIGHLIGHT

public static final int MODE_HIGHLIGHT

6.3.2.12.3.1.9. MODE_NONE

public static final int MODE_NONE

overlay mode constants

6.3.2.12.3.1.10. mBottomToolbar

protected BottomToolbar mBottomToolbar

6.3.2.12.3.1.11. mCanvasCenterX

protected float mCanvasCenterX

6.3.2.12.3.1.12. mDrawItems

protected List<DrawItem> mDrawItems

6.3.2.12.3.1.13. mFeature

protected Feature mFeature

6.3.2.12.3.1.14. mGpsEventSource

protected GpsEventSource mGpsEventSource

6.3.2.12.3.1.15. mHasEdits

protected boolean mHasEdits

6.3.2.12.3.1.16. mLayer

protected VectorLayer mLayer

6.3.2.12.3.1.17. mListeners

protected List<EditEventListener> mListeners

6.3.2.12.3.1.18. mMap

protected MapDrawable mMap

6.3.2.12.3.1.19. mMode

protected int mMode

6.3.2.12.3.1.20. mOverlayPoint

protected OverlayItem mOverlayPoint

6.3.2.12.3.1.21. mPaint

protected Paint mPaint

6.3.2.12.3.1.22. mReceiver

protected WalkEditReceiver mReceiver

6.3.2.12.3.1.23. mSelectedItem

protected DrawItem mSelectedItem

6.3.2.12.3.1.24. mTempPointOffset

protected PointF mTempPointOffset

6.3.2.12.3.1.25. mTolerancePX

protected final float mTolerancePX

6.3.2.12.3.1.26. mTopToolbar

protected Toolbar mTopToolbar

6.3.2.12.3.1.27. mType

protected static final int mType

edit feature style

6.3.2.12.3.2. Constructors

6.3.2.12.3.2.1. EditLayerOverlay

public EditLayerOverlay(Context context, MapViewOverlays mapViewOverlays)

6.3.2.12.3.3. Methods

6.3.2.12.3.3.1. addGeometryToMulti

protected boolean addGeometryToMulti(int geometryType)

6.3.2.12.3.3.2. addInnerRing

protected boolean addInnerRing()

6.3.2.12.3.3.3. addListener

public void addListener(EditEventListener listener)

6.3.2.12.3.3.4. clearAll

protected void clearAll()

6.3.2.12.3.3.5. clearDrawItems

protected void clearDrawItems()

6.3.2.12.3.3.6. clearGeometry

protected void clearGeometry()

6.3.2.12.3.3.7. createNewGeometry

public void createNewGeometry()

6.3.2.12.3.3.8. createPointFromOverlay

public void createPointFromOverlay()

6.3.2.12.3.3.9. deleteGeometry

protected boolean deleteGeometry()

6.3.2.12.3.3.10. deleteInnerRing

protected boolean deleteInnerRing()

6.3.2.12.3.3.11. deletePoint

protected boolean deletePoint()

6.3.2.12.3.3.12. draw

public void draw(Canvas canvas, MapDrawable mapDrawable)

6.3.2.12.3.3.13. drawCross

protected void drawCross(Canvas canvas)

6.3.2.12.3.3.14. drawItem

protected void drawItem(DrawItem drawItem, Canvas canvas, boolean isSelected)

6.3.2.12.3.3.15. drawOnPanning

public void drawOnPanning(Canvas canvas, PointF currentMouseOffset)

6.3.2.12.3.3.16. drawOnZooming

public void drawOnZooming(Canvas canvas, PointF currentFocusLocation, float scale)

6.3.2.12.3.3.17. fillDrawItems

public void fillDrawItems(GeoGeometry geom)

6.3.2.12.3.3.18. fillDrawLine

protected void fillDrawLine(GeoLineString lineString)

6.3.2.12.3.3.19. fillDrawPolygon

protected void fillDrawPolygon(GeoPolygon polygon)

6.3.2.12.3.3.20. fillDrawRing

protected void fillDrawRing(GeoLinearRing geoLinearRing)

6.3.2.12.3.3.21. fillGeometry

protected void fillGeometry()

6.3.2.12.3.3.22. getBaseGeometry

public static GeoGeometry getBaseGeometry(MapDrawable map, int geometryType, DrawItem drawItem)

6.3.2.12.3.3.23. getMarker

protected Bitmap getMarker()

6.3.2.12.3.3.24. getMode

public int getMode()

6.3.2.12.3.3.25. getNewGeometry

public static float[] getNewGeometry(int geometryType, float tolerance, MapDrawable map)

6.3.2.12.3.3.26. getSelectedFeature

public Feature getSelectedFeature()

6.3.2.12.3.3.27. getSelectedFeatureGeometry

public GeoGeometry getSelectedFeatureGeometry()

6.3.2.12.3.3.28. getSelectedFeatureId

public long getSelectedFeatureId()

6.3.2.12.3.3.29. hasEdits

public boolean hasEdits()

6.3.2.12.3.3.30. hideNavigationButton

protected void hideNavigationButton()

6.3.2.12.3.3.31. hideOverlayPoint

public void hideOverlayPoint()

6.3.2.12.3.3.32. mapToScreen

protected float[] mapToScreen(GeoPoint[] geoPoints)

6.3.2.12.3.3.33. movePointToLocation

protected boolean movePointToLocation()

6.3.2.12.3.3.34. moveSelectedPoint

protected boolean moveSelectedPoint(float x, float y)

6.3.2.12.3.3.35. newGeometryByWalk

public void newGeometryByWalk()

6.3.2.12.3.3.36. onBestLocationChanged

public void onBestLocationChanged(Location location)

6.3.2.12.3.3.37. onExtentChanged

public void onExtentChanged(float zoom, GeoPoint center)

6.3.2.12.3.3.38. onGpsStatusChanged

public void onGpsStatusChanged(int event)

6.3.2.12.3.3.39. onLayerAdded

public void onLayerAdded(int id)

6.3.2.12.3.3.40. onLayerChanged

public void onLayerChanged(int id)

6.3.2.12.3.3.41. onLayerDeleted

public void onLayerDeleted(int id)

6.3.2.12.3.3.42. onLayerDrawFinished

public void onLayerDrawFinished(int id, float percent)

6.3.2.12.3.3.43. onLayerDrawStarted

public void onLayerDrawStarted()

6.3.2.12.3.3.44. onLayersReordered

public void onLayersReordered()

6.3.2.12.3.3.45. onLocationChanged

public void onLocationChanged(Location location)

6.3.2.12.3.3.46. onLongPress

public void onLongPress(MotionEvent event)

6.3.2.12.3.3.47. onOptionsItemSelected

public boolean onOptionsItemSelected(int id)

6.3.2.12.3.3.48. onPause

public void onPause()

6.3.2.12.3.3.49. onRestoreState

public void onRestoreState(Bundle bundle)

6.3.2.12.3.3.50. onResume

public void onResume()

6.3.2.12.3.3.51. onSaveState

public Bundle onSaveState()

6.3.2.12.3.3.52. onSingleTapUp

public void onSingleTapUp(MotionEvent event)

Select point in current geometry or new geometry from current layer

Parameters:
  • event – Motion event

6.3.2.12.3.3.53. panMoveTo

public void panMoveTo(MotionEvent e)

6.3.2.12.3.3.54. panStart

public void panStart(MotionEvent event)

6.3.2.12.3.3.55. panStop

public void panStop()

6.3.2.12.3.3.56. removeListener

public void removeListener(EditEventListener listener)

6.3.2.12.3.3.57. selectGeometryInScreenCoordinates

public boolean selectGeometryInScreenCoordinates(float x, float y)

6.3.2.12.3.3.58. selectLastItem

protected void selectLastItem()

6.3.2.12.3.3.59. setBottomToolbar

public void setBottomToolbar(BottomToolbar toolbar)

6.3.2.12.3.3.60. setGeometryFromWalkEdit

public void setGeometryFromWalkEdit(GeoGeometry geometry)

6.3.2.12.3.3.61. setHasEdits

public void setHasEdits(boolean hasEdits)

6.3.2.12.3.3.62. setMode

public void setMode(int mode)

6.3.2.12.3.3.63. setOverlayPoint

public void setOverlayPoint(MotionEvent event)

6.3.2.12.3.3.64. setSelectedFeature

public void setSelectedFeature(long featureId)

6.3.2.12.3.3.65. setSelectedFeature

public void setSelectedFeature(Feature feature)

6.3.2.12.3.3.66. setSelectedLayer

public void setSelectedLayer(VectorLayer layer)

6.3.2.12.3.3.67. setTopToolbar

public void setTopToolbar(Toolbar toolbar)

6.3.2.12.3.3.68. showAllFeatures

public void showAllFeatures()

6.3.2.12.3.3.69. startGeometryByWalk

protected void startGeometryByWalk()

6.3.2.12.3.3.70. stopGeometryByWalk

public void stopGeometryByWalk()

6.3.2.12.3.3.71. update

protected void update()

6.3.2.12.3.3.72. updateMap

protected void updateMap()