Greetings,While there appears to be no difference between APIs, this question refers to the 10.1.1 version. I notice that there are eight constant integer field variables contained in the MapEvent object as follows: MAPEVENT_FIRST, MAPEVENT_READY, MAPEVENT_EXTENT_CHANGED, MAPEVENT_ALLLAYERSREMOVED, MAPEVENT_PAN_ENDED, MAPEVENT_ZOOM_COMPLETED, MAPEXTENT_LAST, and MAPEVENT_DISPOSE.I also notice that the getID() method is inherited from the AWTEvent super class, and that, while debugging, the MapEvent object does not appear to contain an integer, other than the inherited, that would identify the type of MapEvent it's suppose to be.I'd like to know how can I determine what action was taken to change the extent of the map that would coincide with these values, if that's what they're suppose to be used for. I've tried the below code and all I get is MAPEVENT_EXTENT_CHANGED as the matching event, likely because the AWTEvent Id is not set with these values: @Override public void mapExtentChanged(MapEvent event) { if (event.getID() == MapEvent.MAPEVENT_PAN_ENDED) { System.out.println("MAPEVENT_PAN_ENDED: " + event.getID()); } else if (event.getID() == MapEvent.MAPEVENT_FIRST) { System.out.println("MAPEVENT_FIRST: " + event.getID()); } else if (event.getID() == MapEvent.MAPEVENT_PAN_ENDED) { System.out.println("MAPEVENT_PAN_ENDED: " + event.getID()); } else if (event.getID() == MapEvent.MAPEXTENT_LAST) { System.out.println("MAPEXTENT_LAST: " + event.getID()); } else if (event.getID() == MapEvent.MAPEVENT_ZOOM_COMPLETED) { System.out.println("MAPEVENT_ZOOM_COMPLETED: " + event.getID()); } else if (event.getID() == MapEvent.MAPEVENT_EXTENT_CHANGED) { System.out.println("MAPEVENT_EXTENT_CHANGED: " + event.getID()); } }
Best practices for this functionality would be very helpful and appreciated.Thanks in advanced.