displaying map code at top of page

Phoca Maps - displaying maps in Joomla! CMS
dawemmy
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 21 Mar 2011, 06:21

displaying map code at top of page

Post by dawemmy »

Hi there!
newbie here.
I am running joomla 1.5.2 the site is currently local but nearly ready to launch. Just need to add maps. Running K2 and rocketheme. The markers and map displays but at the top just under the body tag there is map code that displays in the frontend too.
0) { var phocaLatLngPlgPM1 = new google.maps.LatLng(13.719725768762425, 100.51393032073975); var phocaOptionsPlgPM1 = { zoom: 13, center: phocaLatLngPlgPM1, mapTypeControl: true, mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DEFAULT, position: google.maps.ControlPosition.BOTTOM_RIGHT }, navigationControl:…" />
i only have 2 maps created and 2 markers.

I have tried disabling many different modules plugins and set the default template to rhuk milkyway but the code still displays. I don't think it's the theme, it could be k2 but all my content is in k2. :x
So I really am stuck. Like I said the map does display in the article but in addition the above code also displays.
Any suggestions?
Any suggestions?
dawemmy
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 21 Mar 2011, 06:21

Re: displaying map code at top of page

Post by dawemmy »

So no one has seen this kind of problem. It is truly persistent. The coding at the top looks terrible and unprofessional so I can't just let it slide... so do I uninstall and look for another component?
muhad
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 07 Feb 2010, 10:25

Re: displaying map code at top of page

Post by muhad »

You have probably problem with jscript. Editor (ie. tinymce) clears code: ie <script>
You can try to remove "script" from black list in tinymce.
or
put map in iframe.
Post Reply