Geoportal Extension for Leaflet API Reference

Namespace: MousePosition

L.geoportalControl.MousePosition

Leaflet Control Class to display Mouse position in various CRS and altitude using the altimetric web service of the Geoportal Platform.

Use L.geoportalControl.MousePosition() factory to create instances of that class.

Extends Leaflet L.Control native class.

Methods

moveTo(position, zoom, options)

Leaflet/Controls/MousePosition.js, line 1514

This method is public.
It allows to control the execution of a movement.

Name Type Description
position Object

position = {lon: , lat: }

zoom Number

zoom

options Object

Zoom/pan options

validateExtentCoordinate(coordType, value, e){Boolean}

Leaflet/Controls/MousePosition.js, line 1151

Validate Extend coordinate

Name Type Description
coordType String

Lat or Lon

value String

coordinate

e Event

event

Returns:
is within extent