Download the PHP package venca-x/nettegmap without Composer

On this page you can find all versions of the php package venca-x/nettegmap. 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 nettegmap

Nettegmap

Test Coding Style Coverage Status Total Downloads Latest Stable Version Latest Unstable Version License

Nette addon. Viewer and picker for Google maps

This branch is for Nette 3.0

Version PHP     Recommended Nette
dev-master >= 8.0 Nette 3.0 (Nette\SmartObject)
1.3.x >= 8.0 Nette 3.0 (Nette\SmartObject)
1.2.x >= 7.1 Nette 2.4 (Nette\SmartObject)
1.1.x >= 5.3.7 Nette 2.4, 2.3 (Nette\Object)
1.0.x >= 5.3.7 Nette 2.4, 2.3 (Nette\Object)

Installation

Install with composer:

You need use jQuery.

Configuration

bootstrap.php add register line OR add line in config.neon

OR add line to config.neon:

You must generate YOUR_API_KEY in https://console.developers.google.com/?hl=cs (Credentials -> API key)

Enable Maps JavaScript API in https://console.developers.google.com/?hl=cs

For search by address in maps enable Places API for Web in https://console.developers.google.com/?hl=cs

Usage with Bower

Simple usage viewer marker

This example show how to view map with marker:

Usage viewer marker with polyline

This example show how to show map with marker:

Usage picker in form

This example show how to set GPS position on map:

Set default position value for picker:

Latte:

After send form:

Usage layer

This example show how to add own picture on map as a new layer:

Latte:


Get coordinates from address

return

Get address from coordinates

return

Set marker position from out script (JS)

Limits looking coordinates

Users of the free API: 2,500 requests per 24 hour period. 5 requests per second.

Callback after change position marker in main.js

When you want call your code after marker position chaged, you can be inspired by this code. main.js


All versions of nettegmap with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
nette/application Version ^3.0
nette/bootstrap Version ^3.0
nette/utils Version ^4.0
nette/forms Version ^3.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 venca-x/nettegmap contains the following files

Loading the files please wait ....