Free TMS providers often require that you credit them. Use the attribution property to set the attribution text. The property supports HTML formatting symbols in its contents:
JavaScript Copy Code |
---|
// create a map layer |
JavaScript Copy Code |
---|
view.load(new m.LatLong(52.523430, 13.411440), 12); |
The map library uses the LatLong class to specify the geographical coordinates of objects. The class provides the latitude and longitude of a point. The values are both positive and negative: for latitude positive east of the 0-Meridian and negative west from it. For longitude - positive
north to the Equator and negative - south of it. Thus the coordinates of London, Sidney and New York will be:
JavaScript Copy Code |
---|
var latLong_London = new m.LatLong(51.507351, -0.127758); |
Here is a sample service that will give you the geographical coordinates of locations around the globe in this manner: https://www.latlong.net/
The mapCenter property of the MapView provides you information of the current center of the map. The rectangle of the MapView control together with the mouse position are measured in standard JavaScript points. You can convert between the client coordinates and map coordinates with the latLongToClient and clientToLatLong methods.
The location coordinates of Marker and Bubble instances also use LatLong values. The MapEventArgs class that provides data for the click and hover events also uses LatLong values for its location property.