MapsExtensions Class

Extensions when working with Map Services.

Definition

Namespace: MobileTrack.Web.Components.Extensions
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public static class MapsExtensions
Inheritance
Object    MapsExtensions

Methods

BindPolyFunctions 
CreatePolyElement Creates a map element from a GeofenceDto and a MapMarkerDto.
ExtendFromLocation Extends the bounds of the map to include the given location, with some padding.
GenerateCircleOptions Generates a CircleOptions for a GeofenceDto based on the provided mapMarker and position.
GenerateMapOptionsT Generates a MapOptions for a Google Map centered around the item parameter. (Usually a EnvironmentDto or DeviceDto)
GeneratePolygonOptions Generates a PolygonOptions for a GeofenceDto based on the provided mapMarker and map.
GeneratePolyLineOptions Generates a PolylineOptions for a GeofenceDto based on the provided mapMarker and map.
InsertGeoLocationByProximity Inserts a new LatLngLiteral into the polygon by proximity to the edges of the polygon.
IsPointInPolygon Checks if point is inside polygon, using the Ray-Casting Algorithm (also known as even-odd rule). This algorithm works for both convex and concave polygons.
ToGeoLocation Converts a LatLngLiteral to a GeoLocation
ToLatLngLiteral(GeoLocation) Converts a GeoLocation to a LatLngLiteral for use in Google Maps
ToLatLngLiteral(GeoLocationWithHeading) Converts a GeoLocationWithHeading to a LatLngLiteral for use in Google Maps

See Also