下列方法是一步步的執行方式參考,吔...這表示我有偷吃步啦,
想知道嗎?嘿嘿,待我下回分曉囉.
- 首先,第一步請增加一段語法在QV的語法編輯器中
Edit Script |
請注意,你的分析資料中必需要有欄位為Latitude, Longitude才能跟Google 連結
例如:
member:
LOAD 會員編號,
姓名,
姓別,
電話,
生日,
[E-mail],
地址,
GPS,
Latitude,
Longitude,
星座
FROM
會員檔.xlsx
(ooxml, embedded labels, table is 會員資料);
======================
//請整個複製到語法中
// Google Maps Key
// 申請一個MAP 的KEY 並填入下方 here http://code.google.com/apis/maps/signup.html
gmap_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
max_zoom_level = 17; //maximum value 17
// Variables required for calculating map
// No need to change these
var_pi180= '=pi()/180';
var_lat_offset= '0';
var_mc2= '=256*pow(2,$(var_zoom))';
var_mc1= '=256*pow(2,($(var_zoom)-1))';
var_mid_lat= '=min(Latitude)+(1+var_lat_offset)*((max(Latitude)-min(Latitude))/2)';
var_mid_long= '=min(Longitude)+(max(Longitude)-min(Longitude))/2';
var_zoom= '=max(aggr(if(max( round(256*pow(2,(_zoom_level -1)))+( Longitude *((256*pow(2,_zoom_level ))/360)) )-min( round(256*pow(2,(_zoom_level -1)))+( Longitude *((256*pow(2,_zoom_level ))/360)) ) <map_size_x AND max((256*pow(2,(_zoom_level-1)))+((0.5*log((1+(sin((Latitude)*pi()/180)))/(1-(sin((Latitude)*pi()/180)))))*((-256*pow(2,_zoom_level))/(2*pi()))))-min((256*pow(2,(_zoom_level-1)))+((0.5*log((1+(sin((Latitude)*pi()/180)))/(1-(sin((Latitude)*pi()/180)))))*((-256*pow(2,_zoom_level))/(2*pi()))))<map_size_y,_zoom_level,1),_zoom_level))';
var_maptype= '=if(isnull(only(maptype)),fieldvalue( '&chr(39)&'maptype'&chr(39)&', 1 ),maptype)';
map_size_x= '640';
map_size_y= '400';
SET HidePrefix='_' ;
// Field required for calcualting best zoom level
_zoom_level:
Load RecNo( ) as _zoom_level autogenerate(max_zoom_level);
maptype:
LOAD * INLINE [
maptype
roadmap
mobile
satellite
terrain
hybrid
];
// Google Maps Key
// 申請一個MAP 的KEY 並填入下方 here http://code.google.com/apis/maps/signup.html
gmap_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
max_zoom_level = 17; //maximum value 17
// Variables required for calculating map
// No need to change these
var_pi180= '=pi()/180';
var_lat_offset= '0';
var_mc2= '=256*pow(2,$(var_zoom))';
var_mc1= '=256*pow(2,($(var_zoom)-1))';
var_mid_lat= '=min(Latitude)+(1+var_lat_offset)*((max(Latitude)-min(Latitude))/2)';
var_mid_long= '=min(Longitude)+(max(Longitude)-min(Longitude))/2';
var_zoom= '=max(aggr(if(max( round(256*pow(2,(_zoom_level -1)))+( Longitude *((256*pow(2,_zoom_level ))/360)) )-min( round(256*pow(2,(_zoom_level -1)))+( Longitude *((256*pow(2,_zoom_level ))/360)) ) <map_size_x AND max((256*pow(2,(_zoom_level-1)))+((0.5*log((1+(sin((Latitude)*pi()/180)))/(1-(sin((Latitude)*pi()/180)))))*((-256*pow(2,_zoom_level))/(2*pi()))))-min((256*pow(2,(_zoom_level-1)))+((0.5*log((1+(sin((Latitude)*pi()/180)))/(1-(sin((Latitude)*pi()/180)))))*((-256*pow(2,_zoom_level))/(2*pi()))))<map_size_y,_zoom_level,1),_zoom_level))';
var_maptype= '=if(isnull(only(maptype)),fieldvalue( '&chr(39)&'maptype'&chr(39)&', 1 ),maptype)';
map_size_x= '640';
map_size_y= '400';
SET HidePrefix='_' ;
// Field required for calcualting best zoom level
_zoom_level:
Load RecNo( ) as _zoom_level autogenerate(max_zoom_level);
maptype:
LOAD * INLINE [
maptype
roadmap
mobile
satellite
terrain
hybrid
];
選 擇Scatter chart => NEXT
=> NEXT
新增3個運算式 , 除了運算式3可以自行指定運算式外,運算式1,2 都建議不可以更改
- 運算式1 => Label : Longitude
- 輸入公式: sum( round (256*pow(2,($(var_zoom)-1)))+( Longitude *((256*pow(2,$(var_zoom)))/360)) )
- 點開公式下增加 Background color: 公式為:=ARGB(150,255,0,0)
2. 運算式2 => Label : Latitude
- 輸入公式:
- 點開公式下增加 Background color: 公式為:ARGB(150,255,0,0)
3. 運算式3 => Label: Sales
=> NEXT
選擇顯示的樣式
=> NEXT
=> NEXT
X axis:
Static Min:
=(256*pow(2,($(var_zoom)-1)))+( var_mid_long *((256*pow(2,$(var_zoom)))/360))
-round(map_size_x/2)
Static Max:
=( (256*pow(2,($(var_zoom)-1)))+( var_mid_long *((256*pow(2,$(var_zoom)))/360))
+ round(map_size_x/2))
Y axis:
Static Min:
=((256*pow(2,($(var_zoom)-1)))+((0.5*log((1+(sin(var_mid_lat*pi()/180)))/(1-(sin(var_mid_lat*pi()/180)))))*((-256*pow(2,$(var_zoom)))/(2*pi())))+round(map_size_y/2))
Static Max:
=((256*pow(2,($(var_zoom)-1)))+((0.5*log((1+(sin(var_mid_lat*pi()/180)))/(1-(sin(var_mid_lat*pi()/180)))))*((-256*pow(2,$(var_zoom)))/(2*pi())))-round(map_size_y/2))
=> NEXT選擇 Dynamic Image:
='http://maps.googleapis.com/maps/api/staticmap?center=' & num(var_mid_lat, '##############', '.', ',' ) & ',' & num(var_mid_long, '##############', '.', ',' ) & '&zoom=$(var_zoom)' & '&maptype='&var_maptype & '&size='&map_size_x&'x'&map_size_y & '&key='&gmap_key & '&sensor=false&.jpg'&
'&language=zh-HK'
Isparta
回覆刪除Tunceli
Yozgat
Çorum
Konya
VHC
Aksaray
回覆刪除Aydın
Kütahya
Rize
Bingöl
TFHV8
https://titandijital.com.tr/
回覆刪除sakarya parça eşya taşıma
aksaray parça eşya taşıma
urfa parça eşya taşıma
kocaeli parça eşya taşıma
JTJ30Y
683E9
回覆刪除Muş Parça Eşya Taşıma
Kayseri Evden Eve Nakliyat
Hatay Lojistik
Bilecik Parça Eşya Taşıma
Mersin Şehir İçi Nakliyat
Bartın Parça Eşya Taşıma
Silivri Evden Eve Nakliyat
Sincan Parke Ustası
Kayseri Lojistik
A98CB
回覆刪除Bilecik Lojistik
Yenimahalle Parke Ustası
AAX Güvenilir mi
Ankara Şehirler Arası Nakliyat
Muş Evden Eve Nakliyat
Uşak Evden Eve Nakliyat
Edirne Evden Eve Nakliyat
Alya Coin Hangi Borsada
Aydın Evden Eve Nakliyat
3CF31
回覆刪除kilis görüntülü sohbet siteleri ücretsiz
karaman parasız görüntülü sohbet uygulamaları
canlı sohbet
kars mobil sohbet
bayburt sesli sohbet odası
erzurum sohbet chat
samsun görüntülü sohbet uygulama
mobil sesli sohbet
parasız görüntülü sohbet
5B42E
回覆刪除Parasız Görüntülü Sohbet
Bitcoin Nasıl Alınır
Periscope Beğeni Satın Al
Threads Beğeni Satın Al
Keep Coin Hangi Borsada
Spotify Takipçi Hilesi
Coin Nasıl Kazılır
Binance Referans Kodu
Threads Takipçi Satın Al
EC93F
回覆刪除trezor suite
safepal
trezor suite
arbitrum
aave
dextools
ellipal
avax
poocoin