×

Notice

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

TOPIC: directions field out of the infoWindows

directions field out of the infoWindows 11 years 10 months ago #19491

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hey,

Once you click on 'directions', the fields are coming out of the infoWindows.
(screen shoot from demo site)

directions field out of the infoWindows 11 years 10 months ago #19492

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
that is really strange. I know that this was working... Maybe something has changed in the gmaps API. I'll have to investigate.
Thanks!

directions field out of the infoWindows 11 years 10 months ago #19514

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I just filed a bug report with the google maps API team:
code.google.com/p/gmaps-api-issues/issues/detail?id=4908

The workaround that you can do right now is to go to components/com_hotspots/views/hotspots/tmpl/default.php and add a version param to the url.

maps.google.com/maps/api/js?sensor=true

change it to
maps.google.com/maps/api/js?sensor=true&v=3.9

the infowindow will behave as expected. I really hope that they will fix this...

Regards,
Daniel

directions field out of the infoWindows 11 years 10 months ago #19516

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi Daniel,

I am using Hotspots 2.0.5 and I can not find that line of code on that file.

directions field out of the infoWindows 11 years 10 months ago #19518

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
On 2.0 the url should be in
components/com_hotspots/views/hotspots/view.html.php

In 3.0 it was moved to the tmpl/default.php so that people could actually use template overrides and eventually (as in this case) be able to set specific gmaps version to use.

Regards,
Daniel

directions field out of the infoWindows 11 years 10 months ago #19519

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Thanks Daniel. That did the trick!

directions field out of the infoWindows 11 years 7 months ago #20455

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
That code doesn't work anymore.

directions field out of the infoWindows 11 years 7 months ago #20458

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Really??? Ooooh, noooooooooooo. nooooooooooooooo.com/

directions field out of the infoWindows 11 years 7 months ago #20466

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Yes, It's hilarious how the directions field is coming out of the infoWindows. :woohoo:

directions field out of the infoWindows 11 years 7 months ago #20602

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
It's not hilarious at all, but it seems that the gmaps team has no intention to fix the bug at all. I've been postponing the making of my own infowindow for a long time, but it seems that I'll have to do it...

I've been thinking about it now for some time and I think that modals like those here:
twitter.github.io/bootstrap/javascript.html#modals won't be a good fit for hotspots.

When you click on a location and a modal window shows up -> then you loose the perception where this location is located on the map.

I think that I'll just create an infowindow that looks similar to google's one, but with few more options (tab for photo for example) and it should resize when the content changes...
What do you think about modals?

Cheers,
Daniel

directions field out of the infoWindows 11 years 7 months ago #20607

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
It's hilarious how the gmaps team don't care about his own stuff. You are right, the javascript modal example doesn't look like the way to go.

A customized infowindow will perfectly fit with hotspots.

directions field out of the infoWindows 11 years 6 months ago #20848

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
The other day I found that In August the gmaps will get a visual refresh:
developers.google.com/maps/documentation...basics#VisualRefresh

Since in the description it says - new InfoWindows I tried it out and unfortunatly the infoWindow looked even worse....

So... Since it seems that we will never get an InfoWindow that works I decided to go for the infoBubble:
google-maps-utility-library-v3.googlecod...xamples/example.html

It is now implemented in the latest dev. release (only for the default map view). I'll be happy if you guys could test it and let me know if it works as expected.

directions field out of the infoWindows 11 years 6 months ago #20852

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
It looks pretty good. I will play a little bit more later, and I will give you a full report. :evil: LOL Don't be scared.

directions field out of the infoWindows 11 years 6 months ago #20858

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
I am receiving this error:
Table 'virtual_bc.k18pa_hotspots_version' doesn't exist SQL=SELECT * FROM k18pa_hotspots_version LIMIT 0, 1

directions field out of the infoWindows 11 years 6 months ago #20859

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Also, this one:
Fatal error: Call to undefined method HotspotsHelper::getSelectSettings() in /home/virtualbc/virtualbc.ca/home/administrator/components/com_hotspots/views/settings/tmpl/default.php on line 78

directions field out of the infoWindows 11 years 6 months ago #20861

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Which version were you previously using? The update doesn't seem to have worked well... (the db changes are not applied)

directions field out of the infoWindows 11 years 6 months ago #20884

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
I guess I was using an old version. Everything is ok now. I updated everything starting from v 3.0.

There is a scroll bar showing up if you click on directions. And a message saying: Submitted by Administrator...

It was not showing up that message before.

directions field out of the infoWindows 11 years 6 months ago #20885

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
the scroll bars should only appear if the content in the infowindow is higher than 400px. I made it that way so that people won't have to scroll the map to read the content of the infowindow.
  • Page:
  • 1
Time to create page: 0.140 seconds