topic Edit Text on Map (runtime SDK for android) in ArcGIS Runtime SDK for Android Questions //www.gobook3.com/t5/arcgis-runtime-sdk-for-android-questions/edit-text-on-map-runtime-sdk-for-android/m-p/1072461#M5543 < P >我写注释的位置在地图功能ion, while in "onSingleTapConfirmed"

Below text can be placed on map

TextSymbol ts = new TextSymbol(14, "some text", BLUE, CENTER, MIDDLE);
currentTextGraphic = new Graphic(mapPoint, ts);
mGraphicsOverlay.getGraphics().add(currentTextGraphic);

 

Cascade the created text on map, when user try to edit it, it show up as a "Point" and after save, the text turned into point system, e.g. only below determination failled into.

if (graphic.getGeometry().getGeometryType() == GeometryType.POINT) {

 

Or may I know if any method to check the "point" had "TextSymbol" before so that I can further udpate?

 

Fri, 25 Jun 2021 07:23:16 GMT LouiePang 2021-06-25T07:23:16Z Edit Text on Map (runtime SDK for android) //www.gobook3.com/t5/arcgis-runtime-sdk-for-android-questions/edit-text-on-map-runtime-sdk-for-android/m-p/1072461#M5543 < P >我写注释的位置在地图功能ion, while in "onSingleTapConfirmed"

Below text can be placed on map

TextSymbol ts = new TextSymbol(14, "some text", BLUE, CENTER, MIDDLE);
currentTextGraphic = new Graphic(mapPoint, ts);
mGraphicsOverlay.getGraphics().add(currentTextGraphic);

 

Cascade the created text on map, when user try to edit it, it show up as a "Point" and after save, the text turned into point system, e.g. only below determination failled into.

if (graphic.getGeometry().getGeometryType() == GeometryType.POINT) {

 

Or may I know if any method to check the "point" had "TextSymbol" before so that I can further udpate?

 

Fri, 25 Jun 2021 07:23:16 GMT //www.gobook3.com/t5/arcgis-runtime-sdk-for-android-questions/edit-text-on-map-runtime-sdk-for-android/m-p/1072461#M5543 LouiePang 2021-06-25T07:23:16Z
Re: Edit Text on Map (runtime SDK for android) //www.gobook3.com/t5/arcgis-runtime-sdk-for-android-questions/edit-text-on-map-runtime-sdk-for-android/m-p/1075592#M5544

Hello LouiePang, 

I believe the issue may be that the selected object that you are checking is a MapPoint, so you should try check if it is of type

Esri.ArcGISRuntime.Geometry.MapPoint 


Regards,
Peter Dimitrov

Mon, 05 Jul 2021 09:04:34 GMT //www.gobook3.com/t5/arcgis-runtime-sdk-for-android-questions/edit-text-on-map-runtime-sdk-for-android/m-p/1075592#M5544 PeterDimitrov1 2021-07-05T09:04:34Z
Re: Edit Text on Map (runtime SDK for android) //www.gobook3.com/t5/arcgis-runtime-sdk-for-android-questions/edit-text-on-map-runtime-sdk-for-android/m-p/1079123#M5556

May I know how I can check if it is should be a Text/TextSymbol e.g. from the Graphic?
I'm using SketchEditor for placing the Text as mentioned, Or I should uses other way to do it?

My aims is to let user interactively place text on map, it will be good if can be move/edit content again.

Thx

Thu, 15 Jul 2021 07:48:56 GMT //www.gobook3.com/t5/arcgis-runtime-sdk-for-android-questions/edit-text-on-map-runtime-sdk-for-android/m-p/1079123#M5556 LouiePang 2021-07-15T07:48:56Z