Another issues, currently facing is when extending the handlers/map/renderer using AMD i get an error as below (I am using the ext-template with AMD)
Uncaught (in promise) TypeError: Dep.extend is not a function
Below my custom renderer
Uncaught (in promise) TypeError: Dep.extend is not a function
Below my custom renderer
PHP Code:
define('plus-map:handlers/map/tomtom-map-renderer', ['handlers/map/renderer'], function (Dep) {
return Dep.extend({
/**
* @param {module:handlers/map/renderer~addressData} addressData
*/
render: function (addressData) {
if ('tomtom' in window && window.tomtom.map) {
// rest of my code
}
},
});
});
Comment