Jump to content

Live Map doesn't work (fixed by Nabeel)


Cub'X

Recommended Posts

Hi,

I upgraded to the beta 2.1.906. The live map was working fine before and doesn't work correctly now. Following the answer to the open ticket, please find the information requested.

Question 1 :

are you on the stock 'core_htmlhead.tpl' file?

Answer :

Yes - I revert to the standard Crystal layout to perform a comparative test. Same result.

Question 2 :Also are there any Javascript errors, Check the firefox error log. Also, what browser and version?

Answer 2 : Browser version used is Firefox 3.6 latest version. KO

Error #1

Error : missing ) after argument list

Source file : http://@@@@@/index.php/acars

Line : 63, Column : 49

Code Source :

center: new google.maps.LatLng(48.514400, 002.213000),

---------------------------------------------^

Error #2

Error : acars_map_defaults is not defined

Source file : http://@@@@@/lib/js/acarsmap.js

Line : 36

Answer 2 : Browser Google Chrome, lastest version : KO

center: new google.maps.LatLng(48.514400, 002.213000),

Uncaught SyntaxError: Unexpected number

var options = $.extend({}, defaultOptions, acars_map_defaults);

Uncaught ReferenceError: acars_map_defaults is not defined

Answer 2 : Browser Opera, lastest version : OK ?

I can see the map with my latest file, Acars closed.

Only CSS errors with no consequences

CSS - http://@@@@@/lib/skins/crystal/styles.css

Linked-in stylesheet

Invalid value for property: background-image

Line 70:

sorter thead tr .headerSortUp { background-image: url(images/asc.gif) no-repeat;

--------------------------------------------------------------------------------^

CSS - http://@@@@@/lib/skins/crystal/styles.css

Linked-in stylesheet

Invalid value for property: background-image

Line 71:

ter thead tr .headerSortDown { background-image: url(images/desc.gif) no-repeat;

--------------------------------------------------------------------------------^

CSS - http://@@@@@/lib/skins/crystal/styles.css

Linked-in stylesheet

Declaration syntax error

Line 122:

.ui-tabs-disabled { opacity: .4; filter: alpha(opacity=40); }

-----------------------------------------------------------^

CSS - http://@@@@@/lib/css/phpvms.css

Linked-in stylesheet

Declaration syntax error

Line 40:

cument.documentElement.offsetHeight || document.body.clientHeight) / 100)+'px')}

--------------------------------------------------------------------------------^

CSS - http://@@@@@/lib/css/phpvms.css

Linked-in stylesheet

Declaration syntax error

Line 67:

.ui-tabs-disabled{ opacity:.4; filter:alpha(opacity=40)}

---------------------------------------------------------^

Answer 2 : Safari, 4.0.4 (531.21.10): KO

center: new google.maps.LatLng(48.514400, 002.213000),

SyntaxError: Parse error

var options = $.extend({}, defaultOptions, acars_map_defaults);

Uncaught ReferenceError: acars_map_defaults is not defined

Answer 2 : Internet Explorer 7 latest version : KO

cant copy / paste the error as it's a full French descritpion, but 2 errors detected on Javascript.

For tonight, I'm reverting now to the "Cub'X Airlines" layout for not disturbing pilote.

Notice that core_htmlhead.tpl is the same whatever the layout is.

Notice that acarsmap.tpl is the same whatever the layout is (only translation in French is updated for column headers).

Jm²

http://www.cubx-va.eu/

Link to comment
Share on other sites

  • Administrators

Thanks, I'm looking at it right now.

Are you using the default acarsmap.tpl file? It's having trouble with this line:

Error : missing ) after argument list

Source file : http://@@@@@/index.php/acars

Line : 63, Column : 49

Code Source :

center: new google.maps.LatLng(48.514400, 002.213000),

That's the cause.... however I'm not exactly sure why.

Link to comment
Share on other sites

  • Administrators

Ok, here's what it is:

I guess you set your MAP_CENTER_LAT and MAP_CENTER_LNG in the local.config file. It doesn't like the 00 in front of the 002.213000, so in local.config.php, just remove those first two zeros. Let's see if that helps

center: new google.maps.LatLng(48.514400, 002.213000),

Would then read:

center: new google.maps.LatLng(48.514400, 2.213000),

I'm not sure why it doesn't like that. I'll modify the template to cast that into a string

Link to comment
Share on other sites

  • Administrators

local.config.php is buggy when it comes to google map, width and height dont work, also lat and long on load do not work either.

They're being fixed for beta. The height/width are actually set within the template now.

Link to comment
Share on other sites

Ok Nabeel, it's working fine now. I've delete the two zeros in

center: new google.maps.LatLng(48.514400, 002.213000),

and the map appears correctly.

Firefox 3.6 : OK

Google Chrome latest version : OK

Internet Explorer 7 (7.0.5730.11 - latest version) : OK

Opera 10.10 (1893) : OK

Safari 4.0.4 (531.21.10) : OK

Thanks for your fast answer

Jm²

http://www.cubx-va.eu/

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...