yii2mod / Yii2 Google Maps Markers
Licence: mit
Google Maps Markers Widget for Yii2
Stars: ✭ 16
Labels
Projects that are alternatives of or similar to Yii2 Google Maps Markers
filedb
ActiveRecord for static data definitions based on files
Stars: ✭ 72 (+350%)
Mutual labels: yii2, yii2-extension
yii2-merit
Reputation engine for Yii2 用于实现积分,等级功能的设计
Stars: ✭ 16 (+0%)
Mutual labels: yii2, yii2-extension
collection
Basic collection library for Yii Framework 2.0
Stars: ✭ 29 (+81.25%)
Mutual labels: yii2, yii2-extension
ar-dynattribute
Provide ActiveRecord dynamic attributes stored into the single field in serialized state
Stars: ✭ 43 (+168.75%)
Mutual labels: yii2, yii2-extension
yii2-star-rating
Star rating widget based on jQuery Raty
Stars: ✭ 16 (+0%)
Mutual labels: yii2, yii2-extension
ar-variation
Variation behavior for ActiveRecord
Stars: ✭ 46 (+187.5%)
Mutual labels: yii2, yii2-extension
yii2-blog
Simple, configurable blog module for Yii2 (post, comment, nested category, tags). + frontend, backend. + SEO! (Opengraph, Schema.org) ~~~COMING SOON V2.0~~~ Please STAR this repo
Stars: ✭ 79 (+393.75%)
Mutual labels: yii2, yii2-extension
yii2-jwt-user
JWT (JSON Web Token) User component for Yii 2
Stars: ✭ 16 (+0%)
Mutual labels: yii2, yii2-extension
yii2-behaviors
Collection of useful behaviors for Yii Framework 2.0
Stars: ✭ 25 (+56.25%)
Mutual labels: yii2, yii2-extension
Yii2 Gentelella
Free admin template for backend
Stars: ✭ 266 (+1562.5%)
Mutual labels: yii2, yii2-extension
yii2-tinymce
Yii2 extension, tinymce wysiwyg editor
Stars: ✭ 16 (+0%)
Mutual labels: yii2, yii2-extension
yii2-payment
Yii2 Payment extension hổ trợ tích hợp các cổng thanh toán VnPayment, Onepay, Bảo Kim, Ngân Lượng, VTCPay, MoMo.
Stars: ✭ 20 (+25%)
Mutual labels: yii2, yii2-extension
yii2-telegram
Support chat for site based on Telegram bot
Stars: ✭ 49 (+206.25%)
Mutual labels: yii2, yii2-extension
ar-role
ActiveRecord behavior, which provides relation roles (table inheritance)
Stars: ✭ 34 (+112.5%)
Mutual labels: yii2, yii2-extension
yii2-firebird
Firebird connector for Yii2 framework
Stars: ✭ 23 (+43.75%)
Mutual labels: yii2, yii2-extension
yii2-queuemanager
Yii2 Queue Manager (Analytic & Monitor)
Stars: ✭ 18 (+12.5%)
Mutual labels: yii2, yii2-extension
Google Maps Markers Widget for Yii2
GoogleMaps Widget displays a set of user addresses as markers on the map.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require yii2mod/yii2-google-maps-markers "*"
or add
"yii2mod/yii2-google-maps-markers": "*"
to the require section of your composer.json.
Usage
To use GoogleMaps, you need to configure its [[userLocations]] property. For example:
echo yii2mod\google\maps\markers\GoogleMaps::widget([
'userLocations' => [
[
'location' => [
'address' => 'Kharkiv',
'country' => 'Ukraine',
],
'htmlContent' => '<h1>Kharkiv</h1>',
],
[
'location' => [
'city' => 'New York',
'country' => 'United States',
],
'htmlContent' => '<h1>New York</h1>',
],
],
]);
Configuration
To configure the Google Maps key or other options like language, version, library, or map options:
echo yii2mod\google\maps\markers\GoogleMaps::widget([
'userLocations' => [...],
'googleMapsUrlOptions' => [
'key' => 'this_is_my_key',
'language' => 'id',
'version' => '3.1.18',
],
'googleMapsOptions' => [
'mapTypeId' => 'roadmap',
'tilt' => 45,
'zoom' => 5,
],
]);
OR via yii params configuration. For example:
'params' => [
'googleMapsUrlOptions' => [
'key' => 'this_is_my_key',
'language' => 'id',
'version' => '3.1.18',
],
'googleMapsOptions' => [
'mapTypeId' => 'roadmap',
'tilt' => 45,
'zoom' => 10,
],
],
To get key, please visit page
Google Maps Options
You can find them on the options page
Example
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].