PDA

View Full Version : missing event for onGeoUpdate



dolittle
14 Apr 2011, 9:27 AM
When using useCurrentLocation there is a call to onGeoUpdate which center the map according to the browser location.

Two things are missing:
1. An event that fires when onGeoUpdate was called so we can for example put a marker in the center of the map. maprender and mapcenter events are not good for this.
2. Ability to ask the component to useCurrentLocation only when rendering the map once without updating it every time.

In addition, shouldn't Ext.util.GeoLocation be a singleton that is used across all the library?