alfamegaxq / simple-g-maps
google maps apis wrapper bundle
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Type:symfony-bundle
Requires
- php: >=5.5.9
- doctrine/doctrine-bundle: ^1.6
- doctrine/doctrine-cache-bundle: ^1.2
- doctrine/orm: ^2.5
- eightpoints/guzzle-bundle: ^5.2
- guzzlehttp/guzzle: ^6.2
- incenteev/composer-parameter-handler: ^2.0
- sensio/distribution-bundle: ^5.0
- sensio/framework-extra-bundle: ^3.0.2
- symfony/assetic-bundle: ^2.8
- symfony/monolog-bundle: ~2.11.3
- symfony/polyfill-apcu: ^1.0
- symfony/swiftmailer-bundle: ^2.3
- symfony/symfony: 3.1.*
This package is auto-updated.
Last update: 2024-11-07 01:08:33 UTC
README
###Whats inside?
- City autocomplete input for defined country.
Requirements
- jQuery
- jQuery UI
- bundle depends on
GuzzleHttp/guzzle
Installation
- in
AppKernel.php
new SimpleGMapsBundle\SimpleGMapsBundle(),
- add routes in
routing.yml
google_autosuggest:
resource: "@SimpleGMapsBundle/Controller/"
type: annotation
-include scripts
<script src="{{ asset('bundles/gmaps/js/script.js') }}"></script>
Usage
- render action in where you want input to be
{{ render(controller('GMapsBundle:Suggest:renderCitySuggest', {
inputParams: 'name="text" class="city_suggest"',
language: 'de',
country: 'de'
})) }}
- stylize how you want. Don't forget to include "Powered by google" logo if oyu dont use google map
Extending
Feel free to create pull requests to add more google places features
Just preserve idea, that each feature should be realy easy to implement.