Method and device for switching 2.5-dimensional visual angle

The embodiment of the invention discloses a method and a device for switching a 2.5-dimensional visual angle, in particular for switching a 2.5-dimensional map visual angle. The method comprises the following steps of: receiving a visual angle switching instruction, wherein the visual angle switching instruction comprises the 2.5-dimensional map visual angle selected by a user in a preset visual angle range; constructing a perspective transformation matrix according to the map visual angle and the length and the width of a screen of a display interface; acquiring a data packet corresponding to the current display interface, wherein the data packet comprises two-dimensional map data corresponding to an object to be drawn in the current display interface; performing perspective transformation on the data packet by using the perspective transformation matrix; and displaying a corresponding 2.5-dimensional map on the current display interface according to data acquired by performing the perspective transformation on the data packet. The embodiment of the invention also discloses a device corresponding to the method. According to the method and the device, the map visual angle can be changed continuously, a display effect of the 2.5-dimensional map is changed according to a selection of a client, and the user experience is improved according to the continuous change of the map visual angle.