2017 © Pedro Peláez
 

neos-package googlemapeditor

Google Map Inspector Editors for Neos CMS

image

ttree/googlemapeditor

Google Map Inspector Editors for Neos CMS

  • Friday, January 26, 2018
  • by ttree
  • Repository
  • 4 Watchers
  • 10 Stars
  • 214 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 4 Versions
  • 8 % Grown

The README.md

Google Map Inspector Editors for Neos CMS

This package provides a Neos CMS Inspector Editor to select geo coordinates from a Google Map., (*1)

, (*2)

Configuration

You need to configure your API key, see the editorOptions.key bellow. defaultPosition is required to see the initial marker., (*3)

Neos:
  Neos:
    userInterface:
      inspector:
        dataTypes:
          Ttree\GoogleMapEditor\GeoPoint:
            editorOptions:
              url: https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=geometry,drawing,places
              key: use-a-valid-google-map-api-key
              defaultPosition: [-34.397, 150.644]
              defaultZoom: 8
              search: true
              searchPlaceholder: 'Enter address to search'
              defaultSearchTerm: 'Vienna'
              mapDefaultOptions:
                scrollwheel: false
                navigationControl: false
                mapTypeControl: false
                streetViewControl: false
                draggableCursor: default
                draggingCursor: pointer

The mapDefaultOptions accept any option accepted by the GoogleMap component from react-google-maps. So you can be fancy and override the provided styles globaly or for each node property, see bellow for the node property configuration., (*4)

Usage

The default configuration is quiet slim:, (*5)

'Your.Package:Map':
  properties:
    geopoint:
      type: Ttree\GoogleMapEditor\GeoPoint

Tips: Don't disable the fullscreenControl, the editor work fine in full screen mode., (*6)

For each instance of the editor, you can also customize the default editorOptions:, (*7)

'Your.Package:Map':
  properties:
    geopoint:
      type: Ttree\GoogleMapEditor\GeoPoint
      ui:
        inspector:
          editorOptions:
            defaultPosition: [-34.397, 150.644]
            defaultZoom: 14
            mapDefaultOptions:
                streetViewControl: true
                styles:
                  - featureType: all
                    elementType: geometry.fill
                    stylers:
                      - weight: 2.00

Acknowledgments

Development sponsored by visol & ttree ltd - neos solution provider., (*8)

We try our best to craft this package with a lots of love, we are open to sponsoring, support request, ... just contact us., (*9)

License

The MIT License (MIT). Please see LICENSE for more information., (*10)

The Versions

26/01 2018

dev-master

9999999-dev

Google Map Inspector Editors for Neos CMS

  Sources   Download

MIT

The Requires

 

26/01 2018

1.0.2

1.0.2.0

Google Map Inspector Editors for Neos CMS

  Sources   Download

MIT

The Requires

 

24/01 2018

1.0.1

1.0.1.0

Google Map Inspector Editors for Neos CMS

  Sources   Download

MIT

The Requires

 

21/01 2018

1.0.0

1.0.0.0

Google Map Inspector Editors for Neos CMS

  Sources   Download

MIT

The Requires