|
Some difference in 1.45 rom & 2.1 rom....../com.palm.app.maps/app/assistants/app-assistant.js
( Q3 \$ p }' N7 c
$ u V& p m$ @6 s4 E% d p% Z1 T1.45:' _% T% L% _0 t% {" o
AppAssistant.url = "";9 z+ u6 ~( z" E Y: p5 D+ C
AppAssistant.webViewWidget = undefined;
, c# _4 e3 |! jAppAssistant.googleMapsURL = "http://maps.google.com/maps/m";
P) a, |$ P& `- Q( d* s. w' @( L//AppAssistant.googleMapsURL = "http://gjm.google.com/mwm?sky=tfb";1 g. l! W: p, a. d9 d. o/ D; _7 n- t
AppAssistant.urlClientParam = "client=ms-mwm-palm";
/ i3 o9 |2 m( V2 s; N" e. K9 @- `3 A2 N/ v
function AppAssistant(appController) {% b7 Y; U3 M* ?
Mojo.Log.info("MAPS App: AppAssistant");' K7 T: R# Y$ A0 Z* V9 n
this.appController = appController;
$ U/ [( i6 q) D4 U$ g4 X4 y
4 t' C* a, o0 X% H var countryCode = Mojo.Locale.getCurrentLocale().slice(-2).toLowerCase();# q0 u9 W' P! e& F4 X
// HACK for google: they need "uk" intead of "gb" that we set
, m/ ?( o3 U: {0 B: J* }6 ] if (countryCode == "gb") {" |/ V/ Y4 s3 ^1 [. X0 L& q
countryCode = "uk";
& w% y& {9 k* } }1 Y! e: L* r$ s; }% s+ V
AppAssistant.countryCodeParam = "gl=" + countryCode;9 I, T1 F) p9 z' ]7 O! g2 e/ K
: a5 G* x* V7 J% J) c1 w* Z+ n2.1rom:5 j' }0 E1 P6 `$ c3 z
AppAssistant.url = "";
1 ]- Z7 ~" V* Z9 ~$ q0 eAppAssistant.webViewWidget = undefined;
# s( s6 Q/ j% K5 l2 O8 e9 UAppAssistant.googleMapsURL = "http://maps.google.com/maps/m"; R% |% _ a/ W6 n6 @
//AppAssistant.googleMapsURL = "http://gjm.google.com/mwm?sky=tfb";, D$ j8 Q' }( k% M3 f7 V6 u
AppAssistant.urlClientParam = "client=ms-mwm-palm";; d* {; P6 {" i/ t4 x/ |3 |" y4 w
- N5 V$ f6 H4 M* G
function AppAssistant(appController) {
, f9 {2 ?4 R+ d+ W, y7 @5 U Mojo.Log.info("MAPS App: AppAssistant");
9 g% x7 e' k# p4 a; [* A5 p this.appController = appController;( C# |0 V& p; }# l
7 r& r" l" F$ S# w- q r% u var countryCode = Mojo.Locale.getCurrentLocale().slice(-2).toLowerCase();2 k) ]+ |" `/ T
// HACK for google: they need "uk" intead of "gb" that we set: e/ M( {' a# h; `4 r0 U
if (countryCode == "gb") {
n: F& k j8 n* [% r( I/ z$ l countryCode = "uk";* C# j! ^- a$ N
}# T' |1 ]+ Z& N& w
// HACK for google china.
7 k/ N" j( i8 ~ if (countryCode == "cn") {* U; \- r* m4 W4 v) ~
countryCode = "x-unsupported";
; u V% p6 R% T; y9 l }2 v' e% W/ C+ M8 g
AppAssistant.countryCodeParam = "gl=" + countryCode;3 K) H0 h; T# [$ `7 W6 {. _& _
2 [$ ~6 n, u9 A1 t4 _
Can someone tell me the Google Map works well when you choose the countrycode=cn...? thanks! |
|