×

Notice

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

TOPIC: How to revert to 2.05 from 3.1.1?

How to revert to 2.05 from 3.1.1? 12 years 2 months ago #17775

  • Gary Piland
  • Gary Piland's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
We have tried v3.1.1 but there is a serious issue with info windows not moving far enough down to show all the text in them when you click and icon near the top of the map.

bartwest.umbrellahost.net/contact/locations-map#!/catid=1

So since 2.05 does work correctly - how do we install 2.05 over 3.1.1?

How to revert to 2.05 from 3.1.1? 12 years 2 months ago #17777

  • Gary Piland
  • Gary Piland's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
Just noticed the demo for 3.1 has the same problem. Move the map up to make the icons near the top and click on one of them to show the info window...

demo.compojoom.com/hotspots#!/catid=1

How to revert to 2.05 from 3.1.1? 12 years 2 months ago #17779

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Gary,
Naaa, you don't need to downgrade, let us find an acceptable solution for this. (although I don't consider it "serious issue")

Go to
media/com_hotspots/js/modules/hotspot.js
on line 286 you have:
self.infoWindow.setContent(text.setStyle('visibility', 'visible'));
right after that line add:
self.infoWindow.open(self.getCurrentMapObj(), marker.markerObj);

so, does this make it good??? Shall I add this to the next version?
Daniel

How to revert to 2.05 from 3.1.1? 12 years 2 months ago #17780

  • Gary Piland
  • Gary Piland's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
Daniel,

Thank you for the quick response.

Yes, this fix does correct the info window issue - I think adding it in your next release would definitely make sense.

And "serious" to me is if my client asks me to fix it or choose another component.

;-)

How to revert to 2.05 from 3.1.1? 12 years 2 months ago #17784

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Ok, added and it will be in 3.1.2 .

I'm happy that you are happy - that is all that matters - and yes it is better that way, but it is still not serious :D:D:D Serious issue is - when the map is not loading. This is annoying issue :)

Cheers,
Daniel

P.S. Don't forget to review the component here: extensions.joomla.org/extensions/maps-a-...-locations/maps/9468

How to revert to 2.05 from 3.1.1? 12 years 2 months ago #17790

  • Gary Piland
  • Gary Piland's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
Daniel,

Darn, I have one more *small* issue ;-), when you click the Zoom on any location, it still hides the top part of the info window. Can you help with that, too?

bartwest.umbrellahost.net/contact/locations-map#!/catid=1

Thanks!

How to revert to 2.05 from 3.1.1? 12 years 2 months ago #17795

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hm, let us think about that together. You've opened the infowindow and it was centered. Then you see the zoom button -> you click it. and the map zooms in and centers on the marker and not the infowindow. Now I think that it should center on the marker and not on the infowindow - you zoom, because you want to see the area, not because you want to zoom into the infowindow. Even google doesn't center the infowindow when you zoom.

Daniel

How to revert to 2.05 from 3.1.1? 12 years 2 months ago #17804

  • Gary Piland
  • Gary Piland's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0
I can see your point, but hiding the info window info just adds the necessity of dragging the map down to see the info again. From a user interface perspective, I think this is a little unfriendly.

Still, it's your component. If you don't think it's really a problem or it's difficult to fix, I understand.

Thanks.

How to revert to 2.05 from 3.1.1? 12 years 2 months ago #17807

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Well, it is difficult to fix if one wants to make it right...
you can do the following trick in media/com_hotspots/js/modules/hotspot.js on line 347 you have
self.sb.setZoom(15);

right after that line add:
window.fireEvent('openUniqueInfoWindow', hotspot.id);

this should do it, but I don't like it because what we do is to repeat an ajax request.
When you click on a marker we do an ajax request to get the data for the infowindow. Normally when you zoom in, we don't do anything -> we just keep it open.

But with the above solution you'll zoom in and we tell the hotspot module -> load again the infowindow -> we start an ajax request and when it finishes we move the map so that the infowindow is centered. I won't add this in the next release, but you can hack the file if you want.

Regards,
Daniel
  • Page:
  • 1
Time to create page: 0.163 seconds