Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The map is not rendered after bundle configuration #745

Open
fdiedler opened this issue Mar 20, 2022 · 0 comments
Open

The map is not rendered after bundle configuration #745

fdiedler opened this issue Mar 20, 2022 · 0 comments

Comments

@fdiedler
Copy link

fdiedler commented Mar 20, 2022

Environment

Windows 10 with php 8.1

Packages

$ composer show --latest
# Put the result here.

$ composer show --latest
Info from https://repo.packagist.org: #StandWithUkraine
Color legend:

  • patch or minor release available - update recommended
  • major release available - update possible
  • up to date version
    behat/transliterator v1.3.0 v1.3.0 String transliterator
    clue/stream-filter v1.6.0 v1.6.0 A simple and modern approach to stream filtering in PHP
    craue/formflow-bundle 3.6.0 3.6.0 Multi-step forms for your Symfony project.
    doctrine/annotations 1.13.2 1.13.2 Docblock Annotations Parser
    doctrine/cache 2.1.1 2.1.1 PHP Doctrine Cache library is a popular cache implementatio...
    doctrine/collections 1.6.8 1.6.8 PHP Doctrine Collections library that adds additional funct...
    doctrine/common 3.2.2 3.2.2 PHP Doctrine Common project is a library that provides addi...
    doctrine/data-fixtures 1.5.2 1.5.2 Data Fixtures for all Doctrine Object Managers
    doctrine/dbal 3.3.3 3.3.3 Powerful PHP database abstraction layer (DBAL) with many fe...
    doctrine/deprecations v0.5.3 v0.5.3 A small layer on top of trigger_error(E_USER_DEPRECATED) or...
    doctrine/doctrine-bundle 2.5.7 2.5.7 Symfony DoctrineBundle
    doctrine/doctrine-fixtures-bundle 3.4.1 3.4.1 Symfony DoctrineFixturesBundle
    doctrine/doctrine-migrations-bundle 3.2.2 3.2.2 Symfony DoctrineMigrationsBundle
    doctrine/event-manager 1.1.1 1.1.1 The Doctrine Event Manager is a simple PHP event system tha...
    doctrine/inflector 2.0.4 2.0.4 PHP Doctrine Inflector is a small library that can perform ...
    doctrine/instantiator 1.4.1 1.4.1 A small, lightweight utility to instantiate objects in PHP ...
    doctrine/lexer 1.2.3 1.2.3 PHP Doctrine Lexer parser library that can be used in Top-D...
    doctrine/migrations 3.4.1 3.4.1 PHP Doctrine Migrations project offer additional functional...
    doctrine/orm 2.11.2 2.11.2 Object-Relational-Mapper for PHP
    doctrine/persistence 2.4.0 2.4.0 The Doctrine Persistence project is a set of shared interfa...
    doctrine/sql-formatter 1.1.2 1.1.2 a PHP SQL highlighting library
    easycorp/easyadmin-bundle v4.0.9 v3.5.21 Admin generator for Symfony applications
    fakerphp/faker v1.19.0 v1.19.0 Faker is a PHP library that generates fake data for you.
    friendsofphp/proxy-manager-lts v1.0.7 v1.0.7 Adding support for a wider range of PHP versions to ocramiu...
    gedmo/doctrine-extensions v3.6.0 v3.6.0 Doctrine2 behavioral extensions
    geocoder-php/common-http 4.4.0 4.4.0 Common files for HTTP based Geocoders
    geocoder-php/nominatim-provider 5.5.1 5.5.1 Geocoder Nominatim adapter
    geocoder-php/plugin 1.4.0 1.4.0 Plugins to Geocoder providers
    guzzlehttp/guzzle 7.4.1 7.4.1 Guzzle is a PHP HTTP client library
    guzzlehttp/promises 1.5.1 1.5.1 Guzzle promises library
    guzzlehttp/psr7 2.1.0 2.1.0 PSR-7 message implementation that also provides common util...
    jms/metadata 2.6.1 2.6.1 Class/method/property metadata management in PHP
    jms/serializer 3.17.1 3.17.1 Library for (de-)serializing data of any complexity; suppor...
    knplabs/knp-components v3.5.0 v3.5.0 Knplabs component library
    knplabs/knp-paginator-bundle v5.8.0 v5.8.0 Paginator bundle for Symfony to automate pagination and sim...
    knpuniversity/oauth2-client-bundle v2.10.0 v2.10.0 Integration with league/oauth2-client to provide services
    laminas/laminas-code 4.5.1 4.5.1 Extensions to the PHP Reflection API, static code scanning,...
    league/flysystem 3.0.12 2.4.3 File storage abstraction for PHP
    league/flysystem-bundle 2.2.0 2.2.0 Symfony bundle integrating Flysystem into Symfony 4.2+ appl...
    league/mime-type-detection 1.9.0 1.9.0 Mime-type detection for Flysystem
    league/oauth2-client 2.6.1 2.6.1 OAuth 2.0 Client Library
    league/oauth2-facebook 2.2.0 2.2.0 Facebook OAuth 2.0 Client Provider for The PHP League OAuth...
    league/oauth2-google 4.0.0 4.0.0 Google OAuth 2.0 Client Provider for The PHP League OAuth2-...
    monolog/monolog 2.4.0 2.4.0 Sends your logs to files, sockets, inboxes, databases and v...
    nikic/php-parser v4.13.2 v4.13.2 A PHP parser written in PHP
    nucleos/maps-bundle 3.0.0 2.0.0 This bundle provides simple map rendering in symfony applic...
    paragonie/random_compat v9.99.100 v9.99.100 PHP 5.x polyfill for random_bytes() and random_int() from P...
    php-http/discovery 1.14.1 1.14.1 Finds installed HTTPlug implementations and PSR-7 message f...
    php-http/httplug 2.3.0 2.3.0 HTTPlug, the HTTP client abstraction for PHP
    php-http/message 1.13.0 1.13.0 HTTP Message related tools
    php-http/message-factory v1.0.2 v1.0.2 Factory interfaces for PSR-7 HTTP Message
    php-http/promise 1.1.0 1.1.0 Promise used for asynchronous HTTP requests
    phpstan/phpdoc-parser 1.2.0 1.2.0 PHPDoc parser with support for nullable, intersection and g...
    psr/cache 2.0.0 1.0.1 Common interface for caching libraries
    psr/container 1.1.2 2.0.2 Common Container Interface (PHP FIG PSR-11)
    psr/event-dispatcher 1.0.0 1.0.0 Standard interfaces for event handling.
    psr/http-client 1.0.1 1.0.1 Common interface for HTTP clients
    psr/http-factory 1.0.1 1.0.1 Common interfaces for PSR-7 HTTP message factories
    psr/http-message 1.0.1 1.0.1 Common interface for HTTP messages
    psr/log 2.0.0 1.1.4 Common interface for logging libraries
    psr/simple-cache 1.0.1 1.0.1 Common interfaces for simple caching
    ralouphie/getallheaders 3.0.3 3.0.3 A polyfill for getallheaders.
    sensio/framework-extra-bundle v6.2.6 v6.2.6 This bundle provides a way to configure your controllers wi...
    sonata-project/block-bundle 4.11.0 4.11.0 Symfony SonataBlockBundle
    sonata-project/cache 2.2.0 2.2.0 Cache library
    sonata-project/doctrine-extensions 1.16.0 1.16.0 Doctrine2 behavioral extensions
    sonata-project/form-extensions 1.13.1 1.13.1 Symfony form extensions
    sonata-project/twig-extensions 1.9.1 1.9.1 Sonata twig extensions
    stof/doctrine-extensions-bundle v1.7.0 v1.7.0 Integration of the gedmo/doctrine-extensions with Symfony
    symfony/asset v5.4.3 v5.4.3 Manages URL generation and versioning of web assets such as...
    symfony/cache v5.4.6 v5.4.6 Provides an extended PSR-6, PSR-16 (and tags) implementation
    symfony/cache-contracts v2.5.0 v2.5.0 Generic abstractions related to caching
    symfony/config v5.4.3 v5.4.3 Helps you find, load, combine, autofill and validate config...
    symfony/console v5.4.5 v5.4.5 Eases the creation of beautiful and testable command line i...
    symfony/debug-bundle v5.4.3 v5.4.3 Provides a tight integration of the Symfony VarDumper compo...
    symfony/dependency-injection v5.4.6 v5.4.6 Allows you to standardize and centralize the way objects ar...
    symfony/deprecation-contracts v3.0.0 v2.5.0 A generic function and convention to trigger deprecation no...
    symfony/doctrine-bridge v5.4.6 v5.4.6 Provides integration for Doctrine with various Symfony comp...
    symfony/dotenv v5.4.5 v5.4.5 Registers environment variables from a .env file
    symfony/error-handler v5.4.3 v5.4.3 Provides tools to manage errors and ease debugging PHP code
    symfony/event-dispatcher v5.4.3 v5.4.3 Provides tools that allow your application components to co...
    symfony/event-dispatcher-contracts v3.0.0 v2.5.0 Generic abstractions related to dispatching event
    symfony/expression-language v5.4.3 v5.4.3 Provides an engine that can compile and evaluate expressions
    symfony/filesystem v5.4.6 v5.4.6 Provides basic utilities for the filesystem
    symfony/finder v5.4.3 v5.4.3 Finds files and directories via an intuitive fluent interface
    symfony/flex v2.1.6 v1.18.5 Composer plugin for Symfony
    symfony/form v5.4.5 v5.4.5 Allows to easily create, process and reuse HTML forms
    symfony/framework-bundle v5.4.6 v5.4.6 Provides a tight integration between Symfony components and...
    symfony/http-client v5.4.5 v5.4.5 Provides powerful methods to fetch HTTP resources synchrono...
    symfony/http-client-contracts v2.5.0 v2.5.0 Generic abstractions related to HTTP clients
    symfony/http-foundation v5.4.6 v5.4.6 Defines an object-oriented layer for the HTTP specification
    symfony/http-kernel v5.4.6 v5.4.6 Provides a structured process for converting a Request into...
    symfony/intl v5.4.5 v5.4.5 Provides a PHP replacement layer for the C intl extension t...
    symfony/maker-bundle v1.38.0 v1.38.0 Symfony Maker helps you create empty commands, controllers,...
    symfony/mime v5.4.3 v5.4.3 Allows manipulating MIME messages
    symfony/monolog-bridge v5.4.3 v5.4.3 Provides integration for Monolog with various Symfony compo...
    symfony/monolog-bundle v3.7.1 v3.7.1 Symfony MonologBundle
    symfony/options-resolver v5.4.3 v5.4.3 Provides an improved replacement for the array_replace PHP ...
    symfony/password-hasher v5.4.3 v5.4.3 Provides password hashing utilities
    symfony/polyfill-intl-grapheme v1.25.0 v1.25.0 Symfony polyfill for intl's grapheme_* functions
    symfony/polyfill-intl-icu v1.25.0 v1.25.0 Symfony polyfill for intl's ICU-related data and classes
    symfony/polyfill-intl-idn v1.25.0 v1.25.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 fu...
    symfony/polyfill-intl-normalizer v1.25.0 v1.25.0 Symfony polyfill for intl's Normalizer class and related fu...
    symfony/polyfill-mbstring v1.25.0 v1.25.0 Symfony polyfill for the Mbstring extension
    symfony/polyfill-php73 v1.25.0 v1.25.0 Symfony polyfill backporting some PHP 7.3+ features to lowe...
    symfony/polyfill-php80 v1.25.0 v1.25.0 Symfony polyfill backporting some PHP 8.0+ features to lowe...
    symfony/polyfill-php81 v1.25.0 v1.25.0 Symfony polyfill backporting some PHP 8.1+ features to lowe...
    symfony/polyfill-uuid v1.25.0 v1.25.0 Symfony polyfill for uuid functions
    symfony/property-access v5.4.5 v5.4.5 Provides functions to read and write from/to an object or a...
    symfony/property-info v5.4.3 v5.4.3 Extracts information about PHP class' properties using meta...
    symfony/routing v5.4.3 v5.4.3 Maps an HTTP request to a set of configuration variables
    symfony/runtime v5.4.5 v5.4.5 Enables decoupling PHP applications from global state
    symfony/security-bundle v5.4.5 v5.4.5 Provides a tight integration of the Security component into...
    symfony/security-core v5.4.5 v5.4.5 Symfony Security Component - Core Library
    symfony/security-csrf v5.4.3 v5.4.3 Symfony Security Component - CSRF Library
    symfony/security-guard v5.4.3 v5.4.3 Symfony Security Component - Guard
    symfony/security-http v5.4.5 v5.4.5 Symfony Security Component - HTTP Integration
    symfony/service-contracts v2.4.1 v2.5.0 Generic abstractions related to writing services
    symfony/stopwatch v5.4.5 v5.4.5 Provides a way to profile code
    symfony/string v5.4.3 v5.4.3 Provides an object-oriented API to strings and deals with b...
    symfony/translation v5.4.6 v5.4.6 Provides tools to internationalize your application
    symfony/translation-contracts v2.5.0 v2.5.0 Generic abstractions related to translation
    symfony/twig-bridge v5.4.5 v5.4.5 Provides integration for Twig with various Symfony components
    symfony/twig-bundle v5.4.3 v5.4.3 Provides a tight integration of Twig into the Symfony full-...
    symfony/uid v5.4.3 v5.4.3 Provides an object-oriented API to generate and represent UIDs
    symfony/validator v5.4.6 v5.4.6 Provides tools to validate values
    symfony/var-dumper v5.4.6 v5.4.6 Provides mechanisms for walking through any arbitrary PHP v...
    symfony/var-exporter v5.4.6 v5.4.6 Allows exporting any serializable PHP data structure to pla...
    symfony/web-profiler-bundle v5.4.6 v5.4.6 Provides a development tool that gives detailed information...
    symfony/yaml v5.4.3 v5.4.3 Loads and dumps YAML files
    tetranz/select2entity-bundle v3.1.0 v3.1.0 A Symfony bundle that integrates Select2 as a drop-in repla...
    twig/twig v3.3.8 v3.3.8 Twig, the flexible, fast, and secure template language for PHP
    vich/uploader-bundle 1.19.0 1.19.0 Ease file uploads attached to entities
    willdurand/geocoder 4.5.0 4.5.0 Common files for PHP Geocoder
    willdurand/geocoder-bundle 5.16.1 5.16.1 Integration of Geocoder into Symfony

PHP version

$ php -v
# Put the result here.

$ php -v
PHP 7.4.23 (cli) (built: Aug 25 2021 09:35:48) ( NTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

Subject

Steps to reproduce

Just follow the Readme, install packages then configure bazinga_geocoder.yaml with :

# See the docs at https://github.com/geocoder-php/BazingaGeocoderBundle
bazinga_geocoder:
    # The local IP (127.0.0.1) will be replaced by the fake_ip
    # see https://github.com/geocoder-php/BazingaGeocoderBundle/blob/5.0.0/Resources/doc/index.md#fake-local-ip
    fake_ip: 123.123.123.123

    providers:
        nominatim:
            factory: Bazinga\GeocoderBundle\ProviderFactory\NominatimFactory
            #cache: 'cache.geocoder' # PSR16 Cache pool
            #cache_lifetime: 3600
            #cache_precision: 4

nucleos_maps:
    geocoder:
        service: 'bazinga_geocoder.provider.nominatim'

Then try to render the map with

{{ sonata_block_render({ 'type': 'nucleos_maps.block.map' }, {
            'address': 'Hamburg',
            'service': 'openstreetmap'
        }) }}

Expected results

The map should be displayed.

Actual results

Nothing is displayed. I try to install stimulus (I don't know this library) with

<script type="module">
    import { Application, Controller } from "https://unpkg.com/@hotwired/stimulus/dist/stimulus.js"
    window.Stimulus = Application.start()

    Stimulus.register("hello", class extends Controller {
      static targets = [ "name" ]

      connect() {
      }
    })
  </script>

But same result, the map is not displayed.

Can you help me ? Thanks

@fdiedler fdiedler changed the title Nothing is rendered The map is not rendered after bundle configuration Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant