nucleos / NucleosMapsBundle

📍 This bundle provides simple map rendering in symfony application.
https://nucleos.rocks
MIT License
5 stars 2 forks source link

Make sonata optional, support twig components #902

Open tacman opened 6 months ago

tacman commented 6 months ago

Feature Request

Currently sonata/blocks-bundle is required. It seems that this could also be rendered as a twig ux component.

{{ sonata_block_render({ 'type': 'nucleos_maps.block.map' }, {
    'longitude': '9.993682',
    'latitude': '53.551086',
    'service': 'openstreetmap'
}) }}

<twig:nucleos_map :longitude="place.lng" :latitude="place.lat" service="openstreetmap" />