Well I'm doing like Paul suggested, without renaming the function: OpenLayers.Layer.prototype.getLonLatFromViewPortPx = function (viewPortPx) { alert('Overwritten!'); };
No way. But if it is the correct way, I'll manage somehow. Thank you guys! Piero -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/overwriting-functions-tp1825571p5346981.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users