Download the PHP package booosta/openstreetmap_org without Composer
On this page you can find all versions of the php package booosta/openstreetmap_org. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download booosta/openstreetmap_org
More information about booosta/openstreetmap_org
Files in booosta/openstreetmap_org
Package openstreetmap_org
Short Description Show openstreetmap maps in the Booosta Framework
License LGPL-3.0-only
Informations about the package openstreetmap_org
Show openstreetmap maps in the Booosta Framework
This modules provides the possibility to show maps from openstreetmap.org in a Booosta web application.
Booosta allows to develop PHP web applications quick. It is mainly designed for small web applications. It does not provide a strict MVC distinction. Although the MVC concepts influence the framework. Templates, data objects can be seen as the Vs and Ms of MVC.
Up to version 3 Booosta was available at Sourceforge: https://sourceforge.net/projects/booosta/ From version 4 on it resides on Github and is available from Packagist under booosta/booosta .
Installation
As this is a module for the Booosta framework, you have to have this framework installed first. See the installation instructions for accomplishing this. If your Booosta is installed, you can install this module with
Usage
In your scripts you use the module:
$lat
and $lon
are the latitude and longitude of the center of the map. They are in degree. For example
16.847477
. $zoom
is the zoom factor of the map. Default is 15
. You also can set the with and height of the map:
Markers
You can place markers on your map. You just have to provide the coordinates of all markers:
This will display 3 markers with these coordinates.
You can display the HTML as usual in your templates: