Geolocate zoom factor?
Is it possible to control or set a Geolocate zoom factor?
The HTML5 1.3.1 viewer geolocate tool zooms to the extent of the location graphic rather then a larger map scale in the center of the graphic. Our users are expecting an experience like google maps on mobile devices where the geolocate zoom factor sets the map to a larger map scale.
Thanks.
-Tim
-
Bump! Still interested in this feature...or at least drop a pin on the location?
0 -
Tim,
You can set a zoom level in the json config files for your viewer. For example - c:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Public\REST Elements\Sites\<site name>\Viewers\<viewer name>\VirtualDirectory\Resources\Config\Default\handheld.json.js . There is a section for the geolocate module. Search for "id": "GeolocateViewModel". in the configuration section, you can edit the zoom level. It defaults to 50k. Change it as follows for example:
"geolocateExtentZoomLevel": "3000",
You'll want to make this change at least for the handheld and the tablet config files.
0 -
We are talking about using the global search bar to search an address, click on the result, and have the map zoom into a desireable scale right? I have no effect with changing the GeolocateViewModel ExtentZoomLevel. Might this control the geolocate tool or module rather than the global search geolocate, or do these features share the same tool?
"viewModels": [
{
"id": "GeolocateViewModel",
"type": "geocortex.essentialsHtmlViewer.mapping.modules.geolocate.GeolocateViewModel",
"configuration": {
"geolocateEnabled": true,
"trackingEnabled": true,
"followingEnabled": true,
"enableHighAccuracy": true,
"geolocateAccuracyCircleEnabled": true,
"adjustExtentZoomOnGeolocate": true,
"geolocateExtentZoomLevel": "1000",
"geolocationIndicator": "Resources/Images/Icons/geolocate-position-32.png"
}0 -
I think the thread is about what happens when a user taps the geolocate icon, on a phone say.
David, address results (when clicked in results panel), at least for my apps, default to a certain zoom scale, and I dont know how to change that. Looks like its not configurable, but maybe someone else knows?
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare