Configuring zoom levels
When the map view is enabled, you can control the zoom level of the online maps. You can configure zoom levels by using the Anywhere Administration application.
About this task
To change the zoom level, you edit the worklight.properties file in the Anywhere\MaximoAnywhere\server\conf folder. The default value is 19.
The default value, 19, is valid for
the default URL for the Esri online
maps that are configured in the app.xml file:
providerUrl="http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/
MapServer/tile/{z}/{y}/{x}"
The app.xml file is in the following directory: Anywhere\MaximoAnywhere\apps\app_name\artifact .
Other
URLs have different valid zoom levels. In the default URL, the type
of map is specified, in this case World_Topo_Map. If you want to use
a different map type, change the type of map in the URL. For example,
to see ocean basemaps, change the URL to specify Ocean_Basemap:
http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/
tile/{z}/{y}/{x}
If you have other types of maps
that are defined on your server, change the first part of the URL,
using the pattern:
tile/{z}/{y}/{x}
, for example:
http://myownserver.com/myUrlForBaseMaps/myBaseMapType/tile/{z}/{y}/{x}
Procedure
- In the worklight.properties file, edit the si.map.openLayers.maxZoom property to change the zoom level for the online maps.
- Build and deploy the application.