Home > Mobile >  Scott how to map our current location of the point from the center of the screen to move to the spec
Scott how to map our current location of the point from the center of the screen to move to the spec

Time:10-06

As title,, is in the center of the screen is every time, how to move it to the specified location?

CodePudding user response:

The original poster to solve,
with o

CodePudding user response:

I think you can use the EditText input to obtain the latitude and longitude parameter passing through the automatic switch to the specified location,

CodePudding user response:

AMap. SetPointToCenter (400400);
Set this is ok, parameters are screen coordinates

CodePudding user response:

Var markerPosition=[LNG, lat];
The map. The panTo (markerPosition);

CodePudding user response:

Map. PanTo (LNG. Lat);

CodePudding user response:

First mark is the central point is moved to the map!
So whether MapView contains the center of the screen (that is, determine the control position)
Contains will mark the point moves to relative to the center of the screen.

CodePudding user response:

Ios how processing
  • Related