×

Notice

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

TOPIC: Map seems to be there ... not loading properly?

Map seems to be there ... not loading properly? 8 years 7 months ago #32112

  • Hélio
  • Hélio's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hello Daniel,

For the past hours I’ve been trying to find a solution to make hotspots work again, but nothing so far have worked and I´ve now reached the point that I don’t know what else I should do.

I was hoping for a little support regarding Hotspots 2.0.5 which is installed in my very old joomla 1.5.24 website.

I know the website is completely outdated but right now I cannot afford the investment that would be needed to upgrade the whole website and all its extensions. But I’m planning to do so next year because I know it cannot continue much longer like this.

The link to the hotspots page is this: http://www.plantarportugal.org/index.php/parceiros

It seems that Hotsposts gets locked in some kind of extreme zoom setup each time the page is loaded.

At first I thought it was a completely blank map, but then I’ve found the hotsposts to be there and also if I start selecting different types of map I can see the map is there, just not loading properly, it seems.

It is strange because there are some other map extensions in the website and all seem to be working fine. Even Hotsposts backend map seems to be working flawlessly.

One of the things I’ve tried was to install a completely clean installation of joomla 1.5.24 and Hotspots 2.0.5. in a different domain, but hotspots behaves exactly the same, the backend is working apparently fine but not the frontend.

I’m also attaching an image of how it looks like after I start selecting the different options at the frontend.



Thanks in advance! Any help would be much appreciated!!

Kind regards,
Hélio

ps: I've posted an earlier post in the wrong category..sorry, please delete it.
Attachments:

Map seems to be there ... not loading properly? 8 years 7 months ago #32114

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Pfuuuu, 2.0.5 - that is 3 years ago. I had to install joomla 1.5 to see what's going on there. My guess is that google has changed something in the latest api version and our code together with the latest release breaks for some reason. Here is what I did on my local test and it helped:
components\com_hotspots\views\hotspots\view.html.php line 57:
$gmapsapi = 'http://maps.google.com/maps/api/js?sensor=true';
change it to:
$gmapsapi = 'http://maps.google.com/maps/api/js?v=3.9&sensor=true';

The change tells google to load version 3.9 of the api and it seems that the map works with it, where the first code is loading the latest google maps api.

I hope to see you and the other guys with Hotspots 2.0.5 on Hotspots 5 one day :)

Cheers,
Daniel
The following user(s) said Thank You: Natascha

Map seems to be there ... not loading properly? 8 years 7 months ago #32116

  • Hélio
  • Hélio's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 5
  • Thank you received: 0
Hello Daniel,

You’re a savior! It worked beautifully!!!

Yes, I know… 2.0.5… :( but look, it has been working really well, which shows how great your extensions are.

Anyway, like I said before, I cannot keep the website like this much longer and a general upgrade must be done next year.

I will then come back to subscribe to the latest version.

Daniel, thank you so much for the help! As always, you support is just awesome. :)

Kind regards,
Hélio Lopes

Map seems to be there ... not loading properly? 8 years 5 months ago #32758

  • Helio
  • Helio's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hello Daniel,

Sorry to be bothering you again. :(

This morning the map wasn't loading again.

Could you please, just have a look at the page www.plantarportugal.org/index.php/parceiros to see what is happening?

Kind regards,
Hélio

Map seems to be there ... not loading properly? 8 years 5 months ago #32775

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
For the rest of the users experiencing this here is the solution:
Joomla 1.5 is using a version of mootools that is conflicting with google maps. So the way to go around this would be to load first mootools and after that the google maps library.
Move the call to google maps from the view.html.php file of the hotsptos view to the hotspots/tmpl/default.php file after the call that is loading mootools. Then the map should be loading.

But the best solution actually would be to upgrade your site to the latest joomla version and use the latest hotspots version.

Regards,
Daniel

Map seems to be there ... not loading properly? 8 years 4 months ago #32965

  • Alexander Bischel
  • Alexander Bischel's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
What about the latest Hotspots Core release on Joomla 2.5.28? I just was contacted to check a site where I installed Hotspots Advanced 2.0.5 a long time ago on Joomla 1.5. That site has been updated / upgraded to Joomla 2.5.28 and everything works fine except for the map on the front end. The hotspots upgrade worked fine too, all hotspots are there and also show up on the map in the back end of he site. I searched for "$gmapsapi" across the Hotspots folders and found it in "/administrator/components/com_hotspots/views/edit/view.html.php". I edited according to this thread but no change. One thing I noticed: the site doesn't have a API key from Google and in the back end options the background color hex code appears in the API field and can't be deleted. Thanks for your help

Map seems to be there ... not loading properly? 8 years 4 months ago #32968

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
So which version did you install on that joomla 2.5 site? There was a bug with the api key, but it shouldn't prevent the map from loading. Most probably you have a jquery issue on the page or another js issue.

Regards,
Daniel

Map seems to be there ... not loading properly? 8 years 4 months ago #32972

  • Alexander Bischel
  • Alexander Bischel's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
5.1.11 is installed and I checked for jQuery and it's not loaded, only Joomla 2.5 mootools.
Any non public way I can send you a link to the site?

Map seems to be there ... not loading properly? 8 years 4 months ago #32976

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
We have a ticket system where you can create private tickets, but this is only for subscribers.

Map seems to be there ... not loading properly? 8 years 4 months ago #32977

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
And jquery should be loaded - at least the jquery that comes with our package. We need jQuery for the map view.
  • Page:
  • 1
Time to create page: 0.130 seconds