This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| /* src/Srilizer/CircularReferenceHandler | |
| */ | |
| namespace App\Serializer; | |
| class CircularReferenceHandler | |
| { | |
| /** | |
| * @param object $object The entity that was already serialized | |
| * @param string|null $format The format (json, xml, etc.) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Combine both fixes for a bulletproof map | |
| var map = L.map('map', { | |
| renderer: L.svg({ padding: 0.5 }), // Fixes polygon clipping | |
| preferCanvas: true // Fixes lag with many points | |
| }); | |
| // Check if you have any CSS global styles affecting img tags. Sometimes a global img { max-width: 100%; } or display: block; can interfere with Leaflet's tile positioning math. You can reset it for the map specifically: | |
| /* CSS */ | |
| #mapId .leaflet-tile-container img { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% if templateOptions.params.logo %} | |
| <style> | |
| h2.sectionTitle::after { | |
| position: absolute; | |
| top: 0px; | |
| display: block; | |
| content: ' '; | |
| height: 24px; | |
| background-image: url("data:image/svg+xml,{{ templateOptions.params.logo|raw|url_encode }}"); | |
| background-position: center top; |