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.
Download venca-x/nettegmap
More information about venca-x/nettegmap
Files in venca-x/nettegmap
Package nettegmap
Short Description Nette/forms addon. Viewer, picker and new layer for Google maps
License MIT
Informations about the package nettegmap
Nettegmap
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
nette/application Version ^3.0
nette/bootstrap Version ^3.0
nette/utils Version ^4.0
nette/forms Version ^3.0