|
Some difference in 1.45 rom & 2.1 rom....../com.palm.app.maps/app/assistants/app-assistant.js
5 U2 t) }8 R7 R9 G
$ X) u% G6 H* i- s5 \2 O3 b1.45:
+ P) b7 g0 q6 N" A0 j& I! |AppAssistant.url = "";+ J% [) R+ T# `) J
AppAssistant.webViewWidget = undefined;
/ A. l/ _! ]' x: HAppAssistant.googleMapsURL = "http://maps.google.com/maps/m";
) N& u) J. N) U9 O//AppAssistant.googleMapsURL = "http://gjm.google.com/mwm?sky=tfb";% C# P+ o/ [1 h2 Z5 Q1 t' J
AppAssistant.urlClientParam = "client=ms-mwm-palm";
5 ]/ N f y3 F: ~' T) f3 ~8 p; x M3 R* E$ h
function AppAssistant(appController) {
* D5 D( I6 G6 `7 q Mojo.Log.info("MAPS App: AppAssistant");! y7 Y* F6 E& x! b$ G7 \
this.appController = appController;* G* l6 `3 S1 e. c) D2 T+ Q
! B) u; Q+ c) p( ^0 G* P: c n var countryCode = Mojo.Locale.getCurrentLocale().slice(-2).toLowerCase();. T& G9 H* I7 j1 z$ N1 t
// HACK for google: they need "uk" intead of "gb" that we set
, ?6 }$ h4 _ Q% m8 E8 F) W if (countryCode == "gb") {
) q; R8 j; ], I9 E# D countryCode = "uk";9 b* L9 i; l) C. l7 Z, }# `
}( ^; W( t" X( f! U- ]9 _
AppAssistant.countryCodeParam = "gl=" + countryCode;. t' I3 J: ?! h; ?# a4 }
) v6 \/ S, _( g$ z! S2.1rom:
( _. }0 G' |5 s: R3 l) r5 cAppAssistant.url = ""; [6 F; a# F! P! d- K
AppAssistant.webViewWidget = undefined;) @, i' F/ `3 Q( ~; J5 Q0 i) L
AppAssistant.googleMapsURL = "http://maps.google.com/maps/m";+ _( L0 t& S5 E" B( X4 Y
//AppAssistant.googleMapsURL = "http://gjm.google.com/mwm?sky=tfb";
* o' P d# M6 CAppAssistant.urlClientParam = "client=ms-mwm-palm";
/ g# }* D, s' w: q/ D1 ^/ z
) W' r6 L# i4 t) M- v" sfunction AppAssistant(appController) {
9 M4 {% Q. ^& A5 Z. t* K t' M f, [ Mojo.Log.info("MAPS App: AppAssistant");
6 I9 U# J, ~5 A this.appController = appController;7 @3 G0 I+ x1 M, P* X% U5 k
$ n* T3 m$ z4 C) i# v1 [& y) y" p var countryCode = Mojo.Locale.getCurrentLocale().slice(-2).toLowerCase();
! [# B! S4 Z5 R5 n // HACK for google: they need "uk" intead of "gb" that we set
# r8 w% R8 y. Q: S( ~5 g, g& n( R if (countryCode == "gb") {5 L; x, T* r4 g
countryCode = "uk";
& q( c0 _* s6 G: e7 ? }/ ]" A6 n2 Y, Q( Y0 I
// HACK for google china.
. U0 G$ C$ g5 O; _ if (countryCode == "cn") {
9 T( D3 N' s. [+ z% g* I: i" | countryCode = "x-unsupported";
: o0 S! L0 m; T, s: a" g8 g }
# K! o0 A1 F B& V AppAssistant.countryCodeParam = "gl=" + countryCode;; Y" t. }- j3 _; b5 M! |# `! N
) o8 f5 o3 c, Z8 f8 Y8 F) tCan someone tell me the Google Map works well when you choose the countrycode=cn...? thanks! |
|