필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Mapping toolbox and wmmarker: why doesn't the html link open its target file?

조회 수: 1 (최근 30일)
Espen Donali
Espen Donali 2019년 12월 5일
마감: MATLAB Answer Bot 2021년 8월 20일
The function wmmarker in the Mapping toolbox can be used to set markers on a web map.
A marker made this way can be clicked to pop up a label window with text, where some of the text can be hyperlinks. In my case the hyper link is pointing to a local image file on my computer: \myImages\myImage.jpg.
My problem is that the hyper link does not open the file when used in the wmmarker function. The hyper link is defined in the html string markerDescr defined below.
close all
webmap('World Imagery');
markerName = 'ST01';
markerDescr = '<a href="matlab: winopen(''myFigures\minFigur.jpg'')">CLICKY</a>';
lat = 69.601142;
lon = 30.025769;
color = [0, 1, 0];
wmmarker(lat,lon,...
'FeatureName',markerName,...
'Description',markerDescr,...
'Color',color,...
'AutoFit',true);
However, if I execute the html variable (markerDescr) in the command window, the link produced will open my image file when clicked.
Why doesn't my html string work in wmmarker, but still work in the command window?
Do I have to change the html string to make it work in the wmmarker?

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by