MATLAB Answers

How to display an image as a marker in a worldmap?

7 views (last 30 days)
Lee
Lee on 15 May 2019
Answered: Jyotish Kumar on 22 May 2019
I am trying to use a png image as a marker in a world map. My world map syntax is:
worldmap([10 75],[160 -30])
setm(gca,'MapProjection','mercator')
geoshow(gca, land, 'FaceColor', [0.5 0.7 0.5])
hold on
I am trying to insert a png image at lat = 26.6159 and lon = -80.77899.
What function do I need to use to complete this task?

  0 Comments

Sign in to comment.

Answers (1)

Jyotish Kumar
Jyotish Kumar on 22 May 2019
Hi,
I understand that you are trying to use a PNG image as a marker in a world map. There are two functions you can try according to your end goal:
  1. wmmarker https://www.mathworks.com/help/map/ref/wmmarker.html
  1. insertMarker https://www.mathworks.com/help/vision/ref/insertmarker.html

  0 Comments

Sign in to comment.