AnsweredAssumed Answered

add image which dynamically changing size when zooming the map

Question asked by kkwoei88 on Jan 15, 2020
Latest reply on Jan 21, 2020 by alucas-esristaff

Hi ArcGIS team,

 

I've added an Image (example: floor plan) by using PictureMarkerSymbol class; and add the graphic onto map by using GraphicOverlay class.

PictureMarkerSymbol pictureMarkerSymbol = new PictureMarkerSymbol(myImage);
Graphic graphic = new Graphic(polygon.getExtent().getCenter(), pictureMarkerSymbol);

pictureMarkerSymbol.loadAsync();
pictureMarkerSymbol.addDoneLoadingListener(new Runnable() {
    @Override
    public void run() {
        mGraphicsOverlay.getGraphics().add(graphic);
    }
});

However, I am facing issue where the image loaded is fixed on its size and not dynamically resize when I zoom in or out of the map. For instance, when I zoom into the map -- the image should be bigger; when I zoom out of the map -- the image should be smaller.

 

Please advise.

 

Thanks and best regards,

Kae Woei

Outcomes