When i find the code in GitHub (arcgis-runtime-samples-java/src/main/java/com/esri/samples/localserver/local_server_map_image_layer ... ),it must be online.
How can i load offline map? ( I want to load the specific map,and my map format is tif picture)
It sounds like you may be looking for a way to read a raster file directly? For this, you don't need to use the Local Server. Raster Layer File—ArcGIS Runtime SDK for Java | ArcGIS for Developers .
I hope I understood correctly?
Can it load mxd or mpk file? What I want is tif(or other) format offline map and load mxd(or mpk) file on it.Mxd file is the line or point based on the map.
Still thanks for your reply
Ah. Thanks for this. (If I still haven't misunderstood ) You can package all of your layer data, line and point data, into a mobile map package (using ArcGIS Pro). For your tif, you don't need Local Server. Runtime can read this file directly into your map. This assumes you're using 100.1 or 100.2, and that you are using a read-only scenario.