Skip to content

GroundOverlay : bug in docs and need help with positioning by 1 point #434

@djdance

Description

@djdance

I used old GroundOverlay this way, as described in the manual:

GroundOverlay myGroundOverlay = new GroundOverlay(this);
myGroundOverlay.setPosition(p);
myGroundOverlay.setImage(getResources().getDrawable(R.drawable.ic_launcher).mutate());
myGroundOverlay.setDimensions(2000.0f);
map.getOverlays().add(myGroundOverlay);

now in the last release it is not possible to do so, because setPosition wants 2 points, and no setDimensions() anymore. Thus the documentation is obsolete :-)

But anyway. How could I workaround this? I know only one point, and I need to just scale my image. I have no bounding box and don't need in complex matrix transformations. Just simply place a picture in a center.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions