Download the PHP package jezzdk/statamic-here-maps without Composer

On this page you can find all versions of the php package jezzdk/statamic-here-maps. 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 statamic-here-maps

Statamic Here Maps

Statamic 4.0+ Latest Version on Packagist

I read the documentation so you don't have to :)

A HERE Maps addon for Statamic for creating and displaying HERE Maps on your website.

Check out my other map addons:

Installation

Require it using Composer.

Publish the assets

Add an environment variable, since this library uses HERE Maps under the hood for displaying maps.

Lastly, insert these tags in the header in order to load the HERE Maps JavaScript and Stylesheet on the frontend:

*Disclaimer* You will to create an account on HERE Maps if you want to create a HERE Maps API key.

Usage

This addon provides a HERE Maps fieldtype. You can use that in your blueprints which will enable your users to dynamically insert maps onto your website.

There is also a tag that you can use directly in your Antlers template. I'll explain both use cases below.

Map Tag

The simplest way to insert a map is by inserting the tag with latitude and longitude:

This will insert a map centered on the given coordinates, with a zoom level of 16 (default) and using the normal map type. The Map tag supports the following attributes:

Attribute Type Default Description
lat float none The latitude (required)
lng float none The longitude (required)
marker bool false Display a marker in the latitude and longitude from above
markerLat float none The latitude for the marker (the marker attribute must be false or omitted)
markerLng float none The longitude for the marker (the marker attribute must be false or omitted)
zoom integer 16 The map zoom level
type string norma.map Valid values are listed below
icon string /assets/marker.png (Pro feature) Use a path relative to the public folder. If the file doesn't exist, the default HERE Maps pin will be used.
style string none (Pro feature) The map styles as a JSON string
showControls boolean false Show the default map controls

Map type values:

Value Type
normal.map Normal
normal.mapnight Normal (night)
normal.base Normal (no labels)
normal.basenight Normal (no labels, night)
satellite.map Satellite
satellite.base Satellite (no labels)
terrain.map Terrain
terrain.base Terrain (no labels)

HERE Maps Field (Pro feature)

Simply select the fieldtype when creating a blueprint. When a user pans around the map, changes zoom level or changes the map type, the settings are saved along with the other fields and the output will display the same view as selected in the control panel.

The field has a few settings:

When using markers, the script will look for an icon at /public/assets/marker.png. If it exist it will be used, otherwise it will use the default HERE Maps pin.

Styles (Pro feature)

The map can be styled using a JSON array of styles. You can generate the style JSON for free at https://platform.here.com/style-editor/.

The fieldtype has a button that reveals a textarea where the url for the style JSON can be inserted, and the map tag has a style attribute for the same purpose.


All versions of statamic-here-maps with dependencies

PHP Build Version
Package Version
No informations.
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 jezzdk/statamic-here-maps contains the following files

Loading the files please wait ...