|
Some difference in 1.45 rom & 2.1 rom....../com.palm.app.maps/app/assistants/app-assistant.js
( f6 `; c- M, ]' B1 T" v7 Y0 h! x- ?+ ^1 }8 z
1.45:
( N c0 P0 w1 h" `/ ^AppAssistant.url = "";: f% u$ W% S& h: ^& o: E" i
AppAssistant.webViewWidget = undefined;
# N" H' h& x# YAppAssistant.googleMapsURL = "http://maps.google.com/maps/m";5 Z& B+ u' s5 a5 D1 V7 n
//AppAssistant.googleMapsURL = "http://gjm.google.com/mwm?sky=tfb";- e) \2 j; o1 E" O
AppAssistant.urlClientParam = "client=ms-mwm-palm";1 [" i) ~9 G: G K9 ^# L. E- u0 V
. x0 v% d. l# y Z
function AppAssistant(appController) {
% m/ g3 M, t' s7 ?7 ]* `/ I Mojo.Log.info("MAPS App: AppAssistant");" _% \7 c8 z1 T( t9 ]5 I
this.appController = appController;* A5 H$ o& Q6 B. V" \
+ R# O" Z" K5 X4 ^, ~8 E var countryCode = Mojo.Locale.getCurrentLocale().slice(-2).toLowerCase();7 {& ~9 {" J- l2 t* V+ C
// HACK for google: they need "uk" intead of "gb" that we set
. x" ^* c9 ~+ D if (countryCode == "gb") {# `( m, F- Q1 S: {4 G( ~
countryCode = "uk";
, g4 `6 \" G" x! M* j1 c9 z/ d }
+ I8 s* t# ?6 G' o. N AppAssistant.countryCodeParam = "gl=" + countryCode;* _8 e$ r7 t( D7 [1 H3 @* O4 b/ x) `
/ [) ]' k' f# v& w. {5 {& Z: B- K2.1rom:8 k9 [9 ~$ X6 ^
AppAssistant.url = "";
; o8 {. D5 L+ t3 `/ a% GAppAssistant.webViewWidget = undefined;. s$ g# A3 _1 U
AppAssistant.googleMapsURL = "http://maps.google.com/maps/m";0 F8 Y- ?! V. V, ]1 E
//AppAssistant.googleMapsURL = "http://gjm.google.com/mwm?sky=tfb";
7 J5 s; Y$ a5 @5 Y( O. ~3 NAppAssistant.urlClientParam = "client=ms-mwm-palm";) K6 M8 \1 x. |0 C; C
( ?$ b* r. B+ c$ c: O& u" Z
function AppAssistant(appController) {5 H) [/ F/ a' Q& W. A9 ?$ b
Mojo.Log.info("MAPS App: AppAssistant");
* [" V, u9 Y" H7 T2 `- u+ w this.appController = appController;+ i ?) k3 F6 u& ?) \
; P4 ?2 H6 ^* _( c+ D var countryCode = Mojo.Locale.getCurrentLocale().slice(-2).toLowerCase();6 E$ O0 Z; L1 `
// HACK for google: they need "uk" intead of "gb" that we set
2 O; d$ }5 B3 d if (countryCode == "gb") {
6 {( i, {$ k: s1 K7 ^* T countryCode = "uk";
: ]5 N( s0 I1 S+ d9 H9 M }
6 @& W; {, ~* R6 ^ // HACK for google china.5 j0 L1 w: A4 g6 m3 C+ c
if (countryCode == "cn") {
" a7 K: I" N- J1 |; ` countryCode = "x-unsupported";7 j- I6 K% k* ?# J; Y( @( ]& j
}/ c2 J5 W ^/ j6 ]
AppAssistant.countryCodeParam = "gl=" + countryCode;
( f1 ~& |' P; D% s! y6 L4 Y1 q4 G' k p }/ \" t
Can someone tell me the Google Map works well when you choose the countrycode=cn...? thanks! |
|