This is the Leaflet Interactive maps for OpenStreatMap for Convertigo
For more technical informations : documentation
-
In your Convertigo Studio click on
to import a project in the treeview -
In the import wizard
paste the text below into the
Project remote URLfield:Usage Click the copy button at the end of the line To contribute lib_Leaflet=https://github.com/convertigo/c8oprj-lib-leaflet.git:branch=masterTo simply use lib_Leaflet=https://github.com/convertigo/c8oprj-lib-leaflet/archive/master.zip -
Click the
Finishbutton. This will automatically import the lib_Leaflet project
Describes the mobile application global properties
The Leaflet Shared Component. Use this component to add OpenStreetMaps maps to you applications.
variables
| name | comment |
|---|---|
| autoCenter | If true the map will automatically be centered on current users GPS position |
| center | The map will be centered on this coordinates described by this object
|
| circles | Add Circles on the map using an array of objects :
You can add as many circles you want in the array. |
| geoCodeSearchAddress | If true the a search box will be displayed at the top of the map to enable users to search for addresses. |
| layers | The maps will display layers coming for data sources. You can give the layer information here by using an array of objects such as :
You can add as many layers you want. |
| markers | Add Markers on the maps using an array of Objects :
|
| polygons | Add polygons to the maps using an Array of objects :
|
| zoom | Zoom factor |
events
| name | comment |
|---|---|
| GpsCentered | This event will be emitted when the GPS has be acquired and the map centered on the current GPS position. The parent.out will hold a
Object holding the acquired GPS position. |
| MapReady | This event will be emitted when the map is ready and displayed. The (map) will hold a reference to the underlying leaflet map object so you can use the leaflet Api to interact with it. |
