An electronic device, comprising: a sensor; a display; and a processor configured to: sense, through the sensor, a first direction of a first side surface of the electronic device, display, on the display, a first partial image of a panoramic image corresponding to the first direction of the first side surface sensed through the sensor, compare information regarding the first partial image with reference view information included in the panoramic image, the reference view information indicating a reference view preset for the panoramic image, wherein the reference view for the panoramic image includes a portion of the panoramic image that a producer of the panoramic image desires to show, when the information regarding the first partial image differs from the reference view information, determine a second direction to a second partial image of the panoramic image corresponding to the reference view from the first partial image based on the first direction of the first side surface of the electronic device, the first side surface having been set as a reference surface, display first information about the determined second direction on the displayed first partial image while the second partial image is not displayed on the display, wherein a distance from the displayed first partial image to the reference view within the panoramic image is indicated based on a size of the displayed first information, and control the first information about the determined second direction to disappear when the second partial image is displayed on the display. a sensor; a display; and a processor configured to: sense, through the sensor, a first direction of a first side surface of the electronic device, display, on the display, a first partial image of a panoramic image corresponding to the first direction of the first side surface sensed through the sensor, compare information regarding the first partial image with reference view information included in the panoramic image, the reference view information indicating a reference view preset for the panoramic image, wherein the reference view for the panoramic image includes a portion of the panoramic image that a producer of the panoramic image desires to show, when the information regarding the first partial image differs from the reference view information, determine a second direction to a second partial image of the panoramic image corresponding to the reference view from the first partial image based on the first direction of the first side surface of the electronic device, the first side surface having been set as a reference surface, display first information about the determined second direction on the displayed first partial image while the second partial image is not displayed on the display, wherein a distance from the displayed first partial image to the reference view within the panoramic image is indicated based on a size of the displayed first information, and control the first information about the determined second direction to disappear when the second partial image is displayed on the display. sense, through the sensor, a first direction of a first side surface of the electronic device, display, on the display, a first partial image of a panoramic image corresponding to the first direction of the first side surface sensed through the sensor, compare information regarding the first partial image with reference view information included in the panoramic image, the reference view information indicating a reference view preset for the panoramic image, wherein the reference view for the panoramic image includes a portion of the panoramic image that a producer of the panoramic image desires to show, when the information regarding the first partial image differs from the reference view information, determine a second direction to a second partial image of the panoramic image corresponding to the reference view from the first partial image based on the first direction of the first side surface of the electronic device, the first side surface having been set as a reference surface, display first information about the determined second direction on the displayed first partial image while the second partial image is not displayed on the display, wherein a distance from the displayed first partial image to the reference view within the panoramic image is indicated based on a size of the displayed first information, and control the first information about the determined second direction to disappear when the second partial image is displayed on the display.