2
我想在livecode窗口中顯示地圖。我正在考慮的地圖來自谷歌地圖。如果possile我喜歡限制地圖覆蓋的區域。我很長一段時間都在嘗試。有人可以幫我解決這個問題。livecode中的地圖
感謝 阿布舍克
我想在livecode窗口中顯示地圖。我正在考慮的地圖來自谷歌地圖。如果possile我喜歡限制地圖覆蓋的區域。我很長一段時間都在嘗試。有人可以幫我解決這個問題。livecode中的地圖
感謝 阿布舍克
可以顯示在LiveCode一個瀏覽器窗口中的地圖。如果您想在桌面環境中執行此操作,請使用外部revBrowser。如果您想使用移動環境,請使用mobileControlCreate命令。您可以通過腳本構建您的URL並將其加載到瀏覽器中,例如顯示阿姆斯特丹在移動設備上的卡的上半部分,使用此語法:
put "Amsterdam" into myCity
put "http://maps.google.nl/maps?q=" & myCity into myUrl
mobileControlCreate "browser"
put the result into gBrowserID
mobileControlSet gBrowserID,"url",myUrl
put the rect of this cd into myRect
put round(item 4 of myRect/2) into item 4 of myRect
mobileControlSet gBrowserID,"rect",myRect
mobileControlSet gBrowserID,"visible","true"
或使用該做桌面設備上顯示的矩形32,32,288,288瀏覽器:
put "Amsterdam" into myCity
put "http://maps.google.nl/maps?q=" & myCity into myUrl
put the windowID of this stack into myID
put revBrowserOpen(myID,"") into gBrowserID
revBrowserSet gBrowserID,"rect","32,32,288,288"
revBrowserSet gBrowserID,"url",myUrl
revBrowserSet gBrowserID,"visible",true
請注意,gBrowserID是一個全局變量,需要像這樣聲明。
請在您的問題中包含一些代碼,並顯示您到目前爲止所嘗試的內容。 – Mark
雖然這個問題很簡單,應該包括更多的信息,但是我完全清楚要問什麼,我的答案(下)涵蓋了這個問題。所以我不明白,這個問題是擱置說「不清楚你問的是什麼」。它可能因其他原因擱置,但不是因爲這個原因。 – Mark