×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Display all categories - then no map-SOLVED

Display all categories - then no map-SOLVED 11 years 11 months ago #18668

  • Lynn McColley
  • Lynn McColley's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
I've just installed and started working on Hotspots and had 4 hotspots and a couple of categories set up. Initially everything worked as expected. I added all my expected categories, updated my menu link, and started adding Hotspots. I currently have 10-12 categories and 6 hotspots across 4 categories, but my map has stopped loading. Is this a known issue?

Here is a link:
stearns.mcmarketingmedia.com/index.php/p...11;18;4;2;14;15;6;16

Display all categories - then no map 11 years 11 months ago #18674

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Lynn,
This code on your page:
<!--End SWmenuPro CSS and Javascript-->
<meta http-equiv="imagetoolbar" content="no" />
<link href="/templates/stearnsprojects/css/template.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
window.onDomReady(function(){ new SmoothScroll({duration: 1200}); });
</script>
</head> 

is actually producing a javascript error. My guess is - because of that the map is not loading.

Regards,
Daniel

Display all categories - then no map 11 years 11 months ago #18773

  • Lynn McColley
  • Lynn McColley's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hi Daniel,

I've removed that little load from the head and also shut down every attempted load of JQuery I could find. ('m using JQuery Easy plugin to stop conflicts)

As I load the Projects page now, the only error I'm seeing is
"TypeError: catCoords is undefined. south = catCoords.south," This is from line 125 in sandbox.js

Display all categories - then no map 11 years 11 months ago #18774

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Could you disable the jcemediabox plugin on that page?
Daniel

Display all categories - then no map 11 years 11 months ago #18777

  • Lynn McColley
  • Lynn McColley's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
JCE Mediabox is now off sitewide. No change.

Display all categories - then no map 11 years 11 months ago #18779

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Lynn,
Can I have a peak at your backend? You don't have hotspots in each category, correct? What I see right now is that there are no boundaries for some categories and that is why the map is not loading. If you navigate to an url like this:
stearns.mcmarketingmedia.com/index.php/projects#!/catid=1
It is working.
Daniel

Display all categories - then no map 11 years 11 months ago #18780

  • Lynn McColley
  • Lynn McColley's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
You're right! It's working when I shut off all the empty categories.

However, it's now the full earth map with 4 duplications. I believe all the locations are western US and Alaska so we should be a little more limited, I would think.

I can give you access, where should I send the credentials.

Display all categories - then no map 11 years 11 months ago #18789

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I can confirm the bug with the empty categories (just tested it).
If in the menu settings one has selected center map by marker bound one will have this problem, because there are no bounds for the empty categories... I'll see what I can do here to fix it. (for now just don't set to show the hotspots from the empty cats... Once you have hotspots in them you can add them to the start cat option.

About the 4 duplications. I can't do anything about it. So basically -> we look for all the markers coordinates and we create a boundary with them. We pass this boundary to the google maps api and it decides how much to zoom out the map and where to center it so that one has all markers in sight.
Since you already know where your markers are going to be, maybe a better way to do this would be to set a center in the middle of the usa and to set an appropriate zoom? This is what I can recommend.

Regards,
Daniel

Display all categories - then no map 11 years 11 months ago #18791

  • Lynn McColley
  • Lynn McColley's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Thanks Daniel!
  • Page:
  • 1
Time to create page: 0.137 seconds