Multiple Markers not Displaying in Map

Phoca Maps - displaying maps in Joomla! CMS
Ryan Hoffman
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 09 Mar 2012, 19:04

Multiple Markers not Displaying in Map

Post by Ryan Hoffman »

I have the Phoca Maps component version 2.0.4 and the plugin version 2.0.5 both installed and enabled on our Joomla 2.5.2 site.

I've created 1 map and I've also created multiple markers. When I have only one of the markers published, the map loads correctly. However, if I publish more than one marker, the map will not load and just displays a blank grey box on the page.

I've tested this to see if I got different results from relying on the map plugin in an article vs. using the map menu item. Whether menu item or using the plugin code in an article, the map fails to load when more than one marker is published.

Can you help?

Thanks,
Ryan
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple Markers not Displaying in Map

Post by Jan »

Hi, can I see the site where this occurs?

Testing here, without any problem - https://www.phoca.cz/joomlademo/phoca-maps (and the plugin on localhost) - without any problem :idea:

Jan
If you find Phoca extensions useful, please support the project
Ryan Hoffman
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 09 Mar 2012, 19:04

Re: Multiple Markers not Displaying in Map

Post by Ryan Hoffman »

Thanks for the reply, Jan.

This site is on our development server, so I'm not sure if you'll be able to see it. I've included a link to it just in case. Here's the page where I've got the map:

http://development.grigg.com/sor/index. ... tions.html

It's an article with the plugin code at the top of the page. I've also got two markers published so you can see what happens. They both have description text. I did notice, however, that when I have both markers published, and just the first marker that I created has description text, and the other marker just has a title, the map appears correctly.

Here's another site we've got on our development server that is using the same component and plugin versions and has multiple markers on the map with description copy for each, yet it displays correctly. The menu item for this page is set to component view:

http://development.grigg.com/virtuemart ... -tour-test

Thanks,
Ryan
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple Markers not Displaying in Map

Post by Jan »

Hi, on the site, there is javascript error:

Error: unterminated string literal
Source: http://development.grigg.com/sor/index. ... tions.html

content: '<div style="font-size:120%;margin: 5px 0px;font-weight:bold;">Canton</div><div><p>6200 Haggerty Rd.

But testing it on my test servers without any such problem, not sure what can be the problem, maybe some code rendered previously :-(
If you find Phoca extensions useful, please support the project
Ryan Hoffman
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 09 Mar 2012, 19:04

Re: Multiple Markers not Displaying in Map

Post by Ryan Hoffman »

Thanks, Jan. I've messed with it some more, and I've got two markers displaying correctly in the map with their description copy wrapped in <p> tags. However, when I add a third marker, the map disappears again. But, when I remove the GPS coordinates for that third marker, yet keep it published, the map reappears.

I’ve looked in the source code when the third marker has the GPS coordinates entered and its published, and it doesn’t look different than the other two markers. All the tags appear to be closed for those three markers as well.

Is the problem with the GPS values? I'm able to make and publish more markers without GPS coordinates and the map still appears, but when I put the GPS coordinates in, the map disappears.

Thanks,
Ryan
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple Markers not Displaying in Map

Post by Jan »

Hi, try to see javascript console in case, GPS values are displayed, maybe you will get some error in javascript which can then prevent from displaying whole map.

Jan
If you find Phoca extensions useful, please support the project
Ryan Hoffman
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 09 Mar 2012, 19:04

Re: Multiple Markers not Displaying in Map

Post by Ryan Hoffman »

Thanks for all the help, Jan.

For some reason, after playing with the content description, publishing/unpublishing markers, etc. the map started displaying all markers correctly with their description and images.

I'm not sure exactly what the problem was, but it appears to be resolved.

Thanks again.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple Markers not Displaying in Map

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
sbrant
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 25 Jun 2012, 16:12

Re: Multiple Markers not Displaying in Map

Post by sbrant »

I had the exact same problem. After a few hours of screwing around with the markers I believe the error has something to do with latent code or unrecognized characters in the marker descriptions. I found this by systematically going through all 6 markers and removing the "pasted as plain text" description copy. I found two markers had special troubles and had to delete them, create new ones, and type in the descriptions instead of using the paste as plain text tool. One last note is that one of the problem descriptions used a dash, but the other did not.

So, bottom line is don't copy and paste - type.

Hope that helps someone.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Multiple Markers not Displaying in Map

Post by Jan »

Ok, thank you for the info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply