|
Some difference in 1.45 rom & 2.1 rom....../com.palm.app.maps/app/assistants/app-assistant.js
. @* P3 t! U7 M! G6 ?/ l3 q& v9 X# o7 i/ |: O2 ~, E1 q6 J: p
1.45:
5 `, ]# ~, ]. N% D. Y6 ~AppAssistant.url = "";* m+ @9 X1 X J! B( l5 M d+ W. y
AppAssistant.webViewWidget = undefined;5 F6 Y5 y; }# U" `+ a2 z
AppAssistant.googleMapsURL = "http://maps.google.com/maps/m";
; u9 U0 a8 k3 r! u3 w2 L7 ]4 c) R//AppAssistant.googleMapsURL = "http://gjm.google.com/mwm?sky=tfb";0 I+ j' q6 {, y* s0 C* i$ }
AppAssistant.urlClientParam = "client=ms-mwm-palm";7 Z: s) [9 S; @; |
! @& U# v% D9 x# z
function AppAssistant(appController) {
( I7 Z8 }5 I5 s0 q' D Mojo.Log.info("MAPS App: AppAssistant");
/ J! I0 q7 u7 I" c& [! ` this.appController = appController;" @- _4 t5 i: K" f4 q
% J) e% n& O; A; e5 ? var countryCode = Mojo.Locale.getCurrentLocale().slice(-2).toLowerCase();
7 Y' Q0 T5 k6 I9 Y // HACK for google: they need "uk" intead of "gb" that we set
* U2 H4 y# M. e7 T1 } if (countryCode == "gb") {
- Q- V S& [; s5 N( a* n( d8 l countryCode = "uk";. ]: ?. e% Z" |2 f8 {. K2 T8 d
}$ ^( L9 _- D8 v7 y+ U
AppAssistant.countryCodeParam = "gl=" + countryCode;" e Q; \( m5 _& S2 t2 Q: [8 ]" t
: }3 l% o Q+ M# b3 O) D* `
2.1rom:, R1 C( y2 k; J S7 m/ a' m: z
AppAssistant.url = "";
2 `2 _4 I: W+ M% t* hAppAssistant.webViewWidget = undefined;
* _, [" M2 w* r& M7 r; r$ {AppAssistant.googleMapsURL = "http://maps.google.com/maps/m";7 [# U0 s: q* `5 O5 ^6 D/ ^
//AppAssistant.googleMapsURL = "http://gjm.google.com/mwm?sky=tfb";
. D: A# k3 e0 Z( j' F" }AppAssistant.urlClientParam = "client=ms-mwm-palm";: c+ Z, g4 f9 u4 X, `
5 T6 g& `7 e* C/ N* l$ F$ Efunction AppAssistant(appController) {
p n& G6 A/ ], ?2 T4 y$ A2 A Mojo.Log.info("MAPS App: AppAssistant");7 Z' r* q5 `( i5 R$ R
this.appController = appController;
) N- M. S# M8 O
1 r4 l5 h7 c4 h% E/ V var countryCode = Mojo.Locale.getCurrentLocale().slice(-2).toLowerCase();8 x: d5 P- f: r
// HACK for google: they need "uk" intead of "gb" that we set
3 U" D$ i* b5 f2 t Q9 R if (countryCode == "gb") {& G# s3 X3 [' m; S5 N/ f, S# ^# z0 q
countryCode = "uk";
: V' p9 Y2 n0 D# E9 y }
* v* s% J" Q3 P8 d // HACK for google china.. T' B3 x6 l; @- T+ D; @$ ^1 B" g
if (countryCode == "cn") {% v5 f( E& ^7 ^0 ^8 v
countryCode = "x-unsupported";
9 O0 _2 X' p A: i: h }/ h( z4 B. B8 E5 g5 \9 Y7 G
AppAssistant.countryCodeParam = "gl=" + countryCode;9 L' L7 L8 A2 c) X' {; b
: w* L- u, `/ I/ g) O# i' dCan someone tell me the Google Map works well when you choose the countrycode=cn...? thanks! |
|