OmhMap
Abstraction to provide access to the OmhMap. This is the main class of OMH Maps SDK for Android and is the entry point for all methods related to the map. You cannot instantiate a GoogleMap object directly, rather, you must obtain one from the getMapAsync() method on a OmhMapView that you have added to your application.
Functions
Adds a marker to this map. The marker's icon is rendered on the map at the position.
Adds a polygon to this map. The polygon is rendered on the map based on the provided options.
Adds a polyline to this map. The polyline is rendered on the map based on the provided options.
Gets the camera's position.
Gets the status of the my-location layer.
Moves the camera's position to a specific position.
Customizes the design of the info window contents. Only applicable if setCustomInfoWindowViewFactory is not set or has been set to null.
Customizes the design of the info window. The passed-in factory is called with instances of OmhMarker and should return a android.view.View to be used as the info window. If the factory is set to null, the default info window appearance will be used.
Sets the style of the map based on a JSON resource. The JSON file should define the styles for the map elements.
Sets the style of the map based on a provided string. The string should define the styles for the map elements.
Sets a callback that's invoked when the my location button is clicked.
Enables or disables the my location layer.
Sets the callback that is invoked when the camera movement has ended.
Sets the callback that's invoked when the camera starts moving or the reason for camera motion has changed.
The callback to be executed when the info window is clicked.
The callback to be executed when the info window is long-clicked.
The callbacks to be executed when the info window changes its open state.
Sets a callback that's invoked when this map has finished rendering. The callback will only be invoked once. If this method is called when the map is fully rendered, the callback will be invoked immediately. This event will not fire if the map never loads due to connectivity issues, or if the map is continuously changing and never completes loading due to the user constantly interacting with the map.
The callback to be executed when the marker is clicked.
The callbacks to be executed on proper marker drag events.
Sets a callback that's invoked when a polygon on the map is clicked.
Sets a callback that's invoked when a polyline on the map is clicked.
Enables or disables the rotate gestures in the map.
Enables or disables the zoom gestures in the map.
Takes a snapshot of the map.