PHPackages                             tmcycyit/map-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. tmcycyit/map-bundle

ActiveSymfony-bundle[API Development](/categories/api)

tmcycyit/map-bundle
===================

1.0.1(10y ago)020911TMCYCYITJavaScript

Since Sep 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/tmcycyit/map-bundle)[ Packagist](https://packagist.org/packages/tmcycyit/map-bundle)[ RSS](/packages/tmcycyit-map-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

Google map widget for sonata admin.

UPGRADE FROM 1.0
================

[](#upgrade-from-10)

Create example project Bus (src/Bus)
------------------------------------

[](#create-example-project-bus-srcbus)

- In Sonata Admin Class:

    ```
    // namespace Bus\MainBundle\Admin;

    // Fields to be shown on create/edit forms
    protected function configureFormFields(FormMapper $formMapper)
    {
         $formMapper
             ->add('name')
             ->add('position', 'mapmarker', array('attr' =>
                     array('draggable' => true,
                          'limit' => 1,
                          'center-lat' => 40.177037117759895,
                          'center-lng' => 44.51488494873047,
                          'zoom' => 12) ))
             ->add('position', 'mapmarker')
             ->add('creationDate')
             ;

    }

    ```

    or:

    ```
    // namespace Bus\MainBundle\Admin;

    // Fields to be shown on create/edit forms
    protected function configureFormFields(FormMapper $formMapper)
    {
         $formMapper
             ->add('name')
             ->add('position', 'mapmarker', array('attr' =>
                     array('draggable' => true,
                          'limit' => 1,
                          'center-lat' => 40.177037117759895,
                          'center-lng' => 44.51488494873047,
                          'zoom' => 12) ))
             ->add('position', 'mapmarker')
             ->add('creationDate')
             ;

    }

    ```
- Add method in the same file, with which you can include map twig

    ```
    public function getFormTheme() {
         return array('BusMapBundle:Admin:mapmarker_edit.html.twig');
    }

    ```
- Create new methods in Entity file, that will create and return an array with parameters longitude and latitude

    ```
    /**
      * Get getPosition
      * @return array
      *
      */
     public function getPosition()
     {
         return array('position' => array('lat' => $this->latitude,'lng' => $this->longitude));
     }
     /**
      * Set setPosition
      * @param array $latlng
      * @return Stop
      *
      */
     public function setPosition($latlng)
     {
         $this
             ->setLatitude($latlng['lat'])
             ->setLongitude($latlng['lng']);
         return $this;
     }

    ```

    consider that there are already properties:

    ```
    /**
      * @var float
      *
      * @ORM\Column(name="longitude", type="decimal", nullable=false, scale=7)
      */
     private $longitude;

     /**
      * @var float
      *
      * @ORM\Column(name="latitude", type="decimal", nullable=false, scale=7)
      */
     private $latitude;

    ```
- Create services in admin.xml

    ```
    // EntityName - is your entity Class

         Bus\MainBundle\Entity\EntityName

         edit
             BusMapBundle:Admin:edit.html.twig

    ```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 52.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

3950d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f981fe836fbd1a818af66bca51d573fce307782afb7b1b48f2586014678e2e81?d=identicon)[tmcyc](/maintainers/tmcyc)

---

Top Contributors

[![shsuserh](https://avatars.githubusercontent.com/u/6176266?v=4)](https://github.com/shsuserh "shsuserh (11 commits)")[![vazgen](https://avatars.githubusercontent.com/u/830160?v=4)](https://github.com/vazgen "vazgen (9 commits)")[![haroutweb](https://avatars.githubusercontent.com/u/2026401?v=4)](https://github.com/haroutweb "haroutweb (1 commits)")

### Embed Badge

![Health badge](/badges/tmcycyit-map-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/tmcycyit-map-bundle/health.svg)](https://phpackages.com/packages/tmcycyit-map-bundle)
```

###  Alternatives

[overblog/activemq-bundle

OverBlog ActiveMQ Bundle

1042.8k](/packages/overblog-activemq-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
