[self.mapView.locationDisplay startDataSource]; self.mapView.locationDisplay.autoPanMode = AGSLocationDisplayAutoPanModeOff;
When you start data source, and if your auto pan mode is anything other than AGSLocationDisplayAutoPanModeOff, the map would zoom to your current location. If you want to zoom to a different area, turn off location display's auto pan mode. [self.mapView.locationDisplay startDataSource]; self.mapView.locationDisplay.autoPanMode = AGSLocationDisplayAutoPanModeOff; More information on auto pan modes hereHope this helps! I encourage you to try our latest releases 10.2.3 or 10.2.2 to take advantage of all the new capabilties
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.