Click fail on polyline googlemap

The place to report Pale Moon specific bugs on the Windows operating system.
Post Reply
User avatar
juanyves
New to the forum
New to the forum
Posts: 1
Joined: 2019-11-04, 15:29

Click fail on polyline googlemap

Post by juanyves » 2019-11-04, 15:43

With that code on the page http://senderosdelagomera.com/buildRutas.php?lang=en
google.maps.event.addListener(p, 'click', function() {
alert('OK');
});
nothing happen and no error registered.
It seems that this behavior is not recognized by Pale Moon. It's works fine in Firefox, Opera, Google Chrome & Edge.
In the page http://senderosdelagomera.com/buildRutas.php?lang=en mouse over the poly-line open an alert and clicking on the line, it open a div with more information. "mouseover" and "mouseout" work fine but not "click"

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 25788
Joined: 2011-08-28, 17:27
Location: 58°2'16"N 14°58'31"E
Contact:

Re: Click fail on polyline googlemap

Post by Moonchild » 2019-11-04, 16:16

Clicking on the routes spawns a console error:

Code: Select all

17:14:51.796 ReferenceError: event is not defined 1 buildRtas.js:165:3
	setPolyline/< http://senderosdelagomera.com/.js/buildRtas.js:165:3
	se.prototype.j https://maps.googleapis.com/maps/api/js:181:287
	_.N.trigger https://maps.googleapis.com/maps/api/js:178:155
	kY.prototype.handleEvent https://maps.googleapis.com/maps-api-v3/api/js/38/10/poly.js:100:181
	pv https://maps.googleapis.com/maps-api-v3/api/js/38/10/map.js:23:119
	mv https://maps.googleapis.com/maps-api-v3/api/js/38/10/map.js:21:315
	onClick https://maps.googleapis.com/maps-api-v3/api/js/38/10/map.js:20:382
	_.t.onClick https://maps.googleapis.com/maps-api-v3/api/js/38/10/common.js:146:262
	ip/this.H< https://maps.googleapis.com/maps-api-v3/api/js/38/10/common.js:64:456
Examining the error:

Code: Select all

	google.maps.event.addListener(p, 'click', function() {
		getInfoTramo(t,event); <** Error
	});
The "event" passed into getInfoTramo does not exist in your namespace. You might need to call it with the full qualifier.
"There will be times when the position you advocate, no matter how well framed and supported, will not be accepted by the public simply because you are who you are." -- Merrill Rose
Image

Post Reply