though it's not recommended, if you really have to avoid dojo.connect, you can simply override the event with the function as events are functions essentially.For example, you can replacedojo.connect(map, "onExtentChange", showExtent);as:map.onExtentChange = showExtent;
I accept.But do u know the below code can write it on Jquery. Shall I have Jquery code for the same.dojo.connect(map, "onLoad", function() { //after map loads, connect to listen to mouse move & drag events dojo.connect(map, "onMouseMove", showCoordinates); dojo.connect(map, "onMouseDrag", showCoordinates); });I
But do u know the below code can write it on Jquery.
There's a sample here which might give you some pointers as to what's possible:http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/#sample/framework_jqueryNote that this sample still uses dojo.connect.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.