Download the PHP package jeromegillard/map without Composer

On this page you can find all versions of the php package jeromegillard/map. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package map

Flarum Map extension

MIT license Latest Stable Version Total Downloads

A Flarum extension. Display a map in flarum in those ways:

To include a map in your post, there's an icon in the bar when composing: Post icon

It will insert that BBCode:

The WHERE value can be any location:

You can also change the zoom level by changing the zoom attribute within the BBCode:

Valid values for zoom are between 0 (world) and 18 (house).

How to customize the map

The post above was written like this:

Supported tile layers

Free, no registration needed: OpenStreetMap. Provider Style Tiles type Description
osm street Rasters OpenStreetMap, default.

MapTiler

Free, API key needed at https://www.maptiler.com/ Provider Style Tiles type Description
maptiler basic-v2 Vectors Basic (basic-v2)
maptiler basic-4326 Vectors Basic EPSG:4326 (basic-4326)
maptiler bright-v2 Vectors Bright (bright-v2)
maptiler openstreetmap Vectors OpenStreetMap (openstreetmap)
maptiler outdoor Vectors Outdoor (outdoor)
maptiler pastel Vectors Pasterl (pastel)
maptiler hybrid Vectors Satelite hybrid (hybrid)
maptiler streets-v2 Vectors Street (streets-v2)
maptiler toner Vectors Toner (toner)
maptiler topo Vectors Topo (topo)
maptiler topographique Vectors Topographique (topographique)
maptiler voyager Vectors Voyager (voyager)
maptiler winter Vectors Winter (winter)

MapBox

Free, API key needed at https://www.mapbox.com/ Provider Style Tiles type Description
mapbox mapbox/streets-v11 Vectors Streets (mapbox/streets-v11)
mapbox mapbox/outdoors-v11 Vectors Outdoors (mapbox/outdoors-v11)
mapbox mapbox/light-v10 Vectors Light (mapbox/light-v10)
mapbox mapbox/dark-v10 Vectors Dark (mapbox/dark-v10)
mapbox mapbox/satellite-v9 Vectors Satelite (mapbox/satellite-v9)
mapbox mapbox/satellite-streets-v11 Vectors Satelite streets (mapbox/satellite-streets-v11)
mapbox mapbox/navigation-day-v1 Vectors Navigation day (mapbox/navigation-day-v1)
mapbox mapbox/navigation-night-v1 Vectors Navigation night (mapbox/navigation-night-v1)

ThunderForest

Free, API key needed at https://www.thunderforest.com/ Provider Style Tiles type Description
thunderforest cycle Rasters cycle
thunderforest transport Rasters transport
thunderforest landscape Rasters landscape
thunderforest outdoors Rasters outdoors
thunderforest transport-dark Rasters transport-dark
thunderforest spinal-map Rasters spinal-map
thunderforest pioneer Rasters pioneer
thunderforest mobile-atlas Rasters mobile-atlas
thunderforest neighbourhood Rasters neighbourhood
thunderforest atlas Rasters atlas

Installation

Composer

Install with composer:

Configure extensions

  1. Enable the FoF Uploads extension.
  2. Enable the Map extension.
  3. Configure FoF Uploads to add the new GPX Template:
    • Write ^application\/.*(gpx|json|xml|geojson|geo.json) mime type upload adapter mapping.
    • Select Map as template.
    • Click the |+| button to add the mapping Setup FoF Upload MIME type
  4. Then add gpx,json,geojson extensions to this list: Setup FoF Upload MIME type
  5. :warning: Save changes (bottom of the screen)
  6. Configure the Map extension (optional).

Updating

Go further

GeoJSON

FeatureCollection can be displayed.

As an example, to generate the GeoJSON file assets/GeoJSON.example.json to get a view of all trails of the Amblève Trail Center, follow those steps:

Development

I've prepared a all-in-one docker-compose.yml file to get up and running to develop this Flarum extension easily.

Prepare the environment

  1. create the flarum-dev.env.local file. There's an example just nearby.
  2. Spin the containers: docker compose up -d
  3. Enter the container: docker exec -it -w /flarum/app flarum-dev /bin/sh
  4. Allow local packages sources: composer config repositories.0 path "packages/*"
  5. Install the extension: composer require jeromegillard/map *@dev
  6. Wait for the container to start. It might be long stuck on last log "[INFO] Setting folder permissions", just wait.
  7. You can browse to http://localhost when logs shows "[INFO] End of startup script. Forum is starting."
  8. To rebuild the front-end, outside the container, go to the js folder and do npm install then npm run dev (you'll need npm installed on your computer).

Links


All versions of map with dependencies

PHP Build Version
Package Version
Requires flarum/core Version ^1.8.3
fof/upload Version ^1.4.7
flarum/bbcode Version ^1.8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jeromegillard/map contains the following files

Loading the files please wait ....