GpsGate Server JavaScript API

Interface  1.0.0

GpsGate Server JavaScript API > Interface > Franson.Map.IProjection
Search:
 
Filters

Class Franson.Map.IProjection

interface for the projection object returned from Map.getProjection()

Constructor

Franson.Map.IProjection()

Methods

fromContainerPixelToLatLng

LatLng fromContainerPixelToLatLng(point)
Convert from screen pixels (x,y) to map Latitude/Longitude (lat, lng)
Parameters:
point <Point> (x,y)
Returns: LatLng

fromLatLngToContainerPixel

Point fromLatLngToContainerPixel(latLng)
Convert from map Latitude/Longitude to screen pixels (x,y)
Parameters:
latLng <LatLng> (lat,lng)
Returns: Point
(x,y)


Copyright © 2009 Franson Technology AB, Sweden. All rights reserved.