|
Some difference in 1.45 rom & 2.1 rom....../com.palm.app.maps/app/assistants/app-assistant.js
$ Z- f8 O! m* Z" w, `; f u+ I
! W3 h- M% J5 k2 M1.45:; @9 {! T( q3 A) i4 K
AppAssistant.url = "";
; ]' W0 a2 |5 TAppAssistant.webViewWidget = undefined;" M+ H+ x- `+ g3 @5 O' N, T
AppAssistant.googleMapsURL = "http://maps.google.com/maps/m";" _4 ^/ w' r5 n$ |0 E
//AppAssistant.googleMapsURL = "http://gjm.google.com/mwm?sky=tfb";$ Y. V; p# f3 h5 \8 X: ^
AppAssistant.urlClientParam = "client=ms-mwm-palm";* ^) R4 f- e0 Z* F7 H- V/ Q
+ o: y/ [6 ?9 Z* L3 `( c& c
function AppAssistant(appController) {$ C0 k. B. P1 d1 P) T+ V' o
Mojo.Log.info("MAPS App: AppAssistant");. l* P/ [8 Z+ m! P/ y
this.appController = appController;
" b8 K7 J' ]% m- P
. d" @ v( n6 X& N! e* r var countryCode = Mojo.Locale.getCurrentLocale().slice(-2).toLowerCase();* X, `6 Y& N; s. l/ k! H: C/ H
// HACK for google: they need "uk" intead of "gb" that we set
' i2 N. x1 E c) Y if (countryCode == "gb") {
( r. l+ p/ ~* v$ p; r7 ~; _6 e countryCode = "uk";8 K5 Y: A, K) s9 u- F' b: G
}
3 F6 U \' K8 M8 X% R AppAssistant.countryCodeParam = "gl=" + countryCode;- N- k9 c) Y7 {: I
2 b" y* o* t% B9 x" a
2.1rom:
& K3 R$ q& e0 B# P1 G4 bAppAssistant.url = "";! `; m3 [4 H2 F4 @3 p0 c. M) {
AppAssistant.webViewWidget = undefined;
. ]0 i' c1 @9 Y- pAppAssistant.googleMapsURL = "http://maps.google.com/maps/m";! Y+ d( ]& @+ ^, h' ]2 G0 N" U
//AppAssistant.googleMapsURL = "http://gjm.google.com/mwm?sky=tfb";, ~" r( M0 a4 F0 q) \/ ?' A: r9 q
AppAssistant.urlClientParam = "client=ms-mwm-palm";4 m4 e3 `7 r4 R) Z
3 K- j, ]( @7 Lfunction AppAssistant(appController) {. j2 P5 D0 t0 v
Mojo.Log.info("MAPS App: AppAssistant");+ J) o6 k) A& l- e' F4 b2 B% l4 R F
this.appController = appController;
* j7 R% n3 C$ \! z
5 W7 c$ s: }& L/ N5 ~2 ` var countryCode = Mojo.Locale.getCurrentLocale().slice(-2).toLowerCase();2 T6 t/ x7 [5 w0 T" [6 J* c* l
// HACK for google: they need "uk" intead of "gb" that we set$ [8 u4 @6 ~$ b! l; }
if (countryCode == "gb") {9 h* k# X* s4 \4 K
countryCode = "uk";
* p H: F' Q/ r* @1 b) u }, E) E. q; ^/ `3 J" x
// HACK for google china.: X$ Q- O7 G3 t$ o2 c- n
if (countryCode == "cn") {# o) {* A# N1 X0 ]8 K
countryCode = "x-unsupported";3 Z$ V" _+ [0 ?( P& a
}5 y- E8 e! i' E- v8 x' A
AppAssistant.countryCodeParam = "gl=" + countryCode;
: v: N8 S# q8 A% F: ~4 J
4 L2 E" C1 S% zCan someone tell me the Google Map works well when you choose the countrycode=cn...? thanks! |
|