×

Notice

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

TOPIC: HotSpots V3 - EDIT function and map problem

HotSpots V3 - EDIT function and map problem 8 years 5 months ago #17175

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Don't worry about beeing blocked! Unless you have 10000 visitors per day you should be on the safe site of the fence! And if you do have so many - you should be able to pay for the use of gmaps...

About the issue in FF - I can't really recreate it.
I made the window really small - but zoom works just fine - the map zooms and the whole page is not scrolling.

Daniel

HotSpots V3 - EDIT function and map problem 8 years 5 months ago #17177

  • Torsten Roecker
  • Torsten Roecker's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 56
  • Thank you received: 1
Hi Daniel,

Daniel Dimitrov wrote: Don't worry about beeing blocked! Unless you have 10000 visitors per day you should be on the safe site of the fence! And if you do have so many - you should be able to pay for the use of gmaps...


This was the idea, IF there are to many visitors (who knows what will come), to be able to pay for the service and the easy way is to add the own API Key and pay per each 1000 hit's more then the free.
But I think there won't be more then 500 Visitors per day maybe on weekend some more, so no problem :)

Daniel Dimitrov wrote: About the issue in FF - I can't really recreate it.
I made the window really small - but zoom works just fine - the map zooms and the whole page is not scrolling.

Daniel


When I load the site in small window, move the mouse over the map and start to zoom then the scroll is active. When the scroll bar is in the middle of the page then the scroll stops.
Then leave the map, scroll up, move back to the map and try to zoom out then the page is scrolling back to the middle :(

Re: HotSpots V3 - EDIT function and map problem 8 years 5 months ago #17221

  • Dimitar Dimitrov
  • Dimitar Dimitrov's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0

...I found the problem with single hotspots and IE8...


Hi Daniel,


The same fix should be applied to views/form/tmpl/form.php, line 34.
hotspots = new compojoom.hotspots.core();

should be
var hotspots = new compojoom.hotspots.core();

Regards,
Dimitar

Re: HotSpots V3 - EDIT function and map problem 8 years 5 months ago #17222

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Dimitar,
Thanks! this is already fixed in the latest dev. release and will be part of the 3.1 release on Monday.

Cheers,
Daniel

Re: HotSpots V3 - EDIT function and map problem 8 years 4 months ago #17459

  • Torsten Roecker
  • Torsten Roecker's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 56
  • Thank you received: 1
Hi Daniel,

found another Bug, HotSpot detail view - zoom through info window is not working:

/media/com_hotspots/js/modules/hotspot/hotspot.js

change:
if(this.sb.getMap().getZoom() < 10) {
			zoom = new Element('span', {
				'html' : this.translate('COM_HOTSPOTS_ZOOM','zoom'),
				'class' : 'link',
				events:{
					click: function (){
						self.map.setCenter(new google.maps.LatLng(hotspot.latitude, hotspot.longitude));
						self.map.setZoom(10);
						self.infoWindow.close();
					}
				}
			});
		}

to:
if(this.sb.getMap().getZoom() < 10) {
			zoom = new Element('span', {
				'html' : this.translate('COM_HOTSPOTS_ZOOM','zoom'),
				'class' : 'link',
				events:{
					click: function () {
						self.sb.getMap().setCenter(new google.maps.LatLng(hotspot.latitude, hotspot.longitude));
						self.sb.setZoom(15);
						self.infoWindow.close();
					}
				}
			});
		}

this is the important part:
self.map.setCenter
self.map.setZoom(10);

to
self.sb.getMap().setCenter
self.sb.setZoom(15);

Re: HotSpots V3 - EDIT function and map problem 8 years 4 months ago #17460

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
what happens when you click the zoom??? Your default zoom level is most probably 11 or something higher and that is why we don't zoom at all.

Daniel

Re: HotSpots V3 - EDIT function and map problem 8 years 4 months ago #17461

  • Torsten Roecker
  • Torsten Roecker's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 56
  • Thank you received: 1
Hi Daniel,

nop, default zoom level: 5
what happend before changeing the code: nothing, the zoom link seem to be there but nothing happened, no zoom, no map center and the info window still appeared

After changing self.map. to self.sb.getMap(). (like in the other hotspot.js one folder above) everything is working as it should.
It seems the map. is a unknown function...
Time to create page: 0.226 seconds