Skip to content
Permalink
Browse files

MapView: make default clickable

  • Loading branch information...
devemux86 committed Oct 17, 2019
1 parent ce38f70 commit 66c95a43f4e9480cb8b70c6c0996be2ae4bb7151
@@ -131,7 +131,6 @@ protected byte getZoomLevelMax() {
protected void createMapViews() {
mapView = getMapView();
mapView.getModel().init(this.preferencesFacade);
mapView.setClickable(true);
mapView.getMapScaleBar().setVisible(true);
mapView.setBuiltInZoomControls(hasZoomControls());
mapView.getMapZoomControls().setAutoHide(isZoomControlsAutoHide());
@@ -131,6 +131,7 @@ public MapView(Context context, AttributeSet attributeSet) {
setLayerType(View.LAYER_TYPE_SOFTWARE, null);
}

setClickable(true);
setDescendantFocusability(FOCUS_BLOCK_DESCENDANTS);
setWillNotDraw(false);

@@ -60,7 +60,6 @@ protected void createMapViews() {
// second mapView is defined in layout
this.mapView2 = (MapView) this.findViewById(R.id.mapView2);
this.mapView2.getModel().init(this.preferencesFacade2);
this.mapView2.setClickable(true);
this.mapView2.getMapScaleBar().setVisible(true);
this.mapView2.setBuiltInZoomControls(hasZoomControls());
this.mapView2.getMapZoomControls().setZoomLevelMin(getZoomLevelMin());
@@ -70,7 +70,6 @@ protected void onCreate(Bundle savedInstanceState) {
/*
* We then make some simple adjustments, such as showing a scale bar and zoom controls.
*/
mapView.setClickable(true);
mapView.getMapScaleBar().setVisible(true);
mapView.setBuiltInZoomControls(true);

@@ -79,7 +79,6 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,

if (this.dummyItem != null) {
this.mapView = (MapView) rootView.findViewById(R.id.mapView);
this.mapView.setClickable(true);
this.mapView.getMapScaleBar().setVisible(true);

createLayers();
@@ -68,7 +68,6 @@ protected void createMapViews() {
mapView = getMapView();
mapView.getModel().frameBufferModel.setOverdrawFactor(1.0d);
mapView.getModel().init(this.preferencesFacade);
mapView.setClickable(true);

// Use external scale bar
mapView.getMapScaleBar().setVisible(false);

0 comments on commit 66c95a4

Please sign in to comment.
You can’t perform that action at this time.