{"id":27646040,"url":"https://github.com/in2code-de/osm","last_synced_at":"2025-04-24T01:16:03.542Z","repository":{"id":39616720,"uuid":"286688336","full_name":"in2code-de/osm","owner":"in2code-de","description":"OSM - OpenStreetMap extension for TYPO3","archived":false,"fork":false,"pushed_at":"2025-01-14T10:02:39.000Z","size":954,"stargazers_count":6,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-24T01:15:34.515Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.in2code.de/agentur/openstreetmap/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/in2code-de.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-11T08:26:21.000Z","updated_at":"2024-08-23T07:52:54.000Z","dependencies_parsed_at":"2024-04-12T11:07:35.469Z","dependency_job_id":null,"html_url":"https://github.com/in2code-de/osm","commit_stats":{"total_commits":52,"total_committers":3,"mean_commits":"17.333333333333332","dds":"0.11538461538461542","last_synced_commit":"41a2c43bccf43a2364b2897e6b0ed6a48eef443b"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/in2code-de%2Fosm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/in2code-de%2Fosm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/in2code-de%2Fosm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/in2code-de%2Fosm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/in2code-de","download_url":"https://codeload.github.com/in2code-de/osm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250540936,"owners_count":21447428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-24T01:16:02.962Z","updated_at":"2025-04-24T01:16:03.530Z","avatar_url":"https://github.com/in2code-de.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OSM - Open Street Map\n\n## Introduction\n\nA small but modern OpenStreetMap extension for TYPO3 (11 and newer). You can simply show a map with or without markers.\nOne or more addresses can be added as human-readable address or with geo coordinates.\n\nA second plugin allows you to show addresses from tt_address records (when tt_address.latitude and .longitude is\nfilled).\n\nNo jQuery, just vanilla JS. Modern asset collector used for includes of JS or CSS. PSR-14 eventdispatcher can be used\nto manipulate markers and labels.\n\n\u003e :warning: **TYPO3 13 compatibility**\\\n\u003e See [EAP page (DE)](https://www.in2code.de/agentur/typo3-extensions/early-access-programm/) or [EAP page (EN)](https://www.in2code.de/en/agency/typo3-extensions/early-access-program/) for more information how to get access to a TYPO3 12 version\n\n## Plugin 1\n\n![screenshot_pi1_frontend.png](Documentation/Images/screenshot_pi1_frontend.png \"Map in frontend\")\n\n![screenshot_pi1_backend.png](Documentation/Images/screenshot_pi1_backend.png \"Plugin in backend\")\n\n## Plugin 2\n\n![screenshot_pi1_frontend.png](Documentation/Images/screenshot_pi2_frontend.png \"Map in frontend\")\n\n![screenshot_pi2_backend.png](Documentation/Images/screenshot_pi2_backend.png \"Plugin in backend\")\n\n**Note** Ensure that fields `tt_address.name`, `tt_address.description`, `tt_address.latitude` and\n`tt_address.longitude` is filled correctly\n\n## Installation\n\nAdd this extension via composer (TYPO3 in classic mode could work but is not supported):\n\n`composer require in2code/osm`\n\nDon't forget to add typeNum 1597149189 for AJAX requests for the markers to your siteconfiguration like:\n\n```\n...\nrouteEnhancers:\n  PageTypeSuffix:\n    type: PageType\n    default: /\n    suffix: /\n    index: ''\n    map:\n      /: 0\n      .html: 0\n      'feed.xml': 9818\n      'markers.json': 1597149189\n...\n```\n\n## FAQ\n\n### How to overwrite paths?\n\nAs always via TypoScript setup - like\n\n```\nplugin.tx_osm {\n    view {\n        templateRootPaths {\n            0 = EXT:osm/Resources/Private/Templates/\n            1 = EXT:yoursitepackage/Resources/Private/Templates/Extensions/Osm/\n        }\n        layoutRootPaths {\n            0 = EXT:osm/Resources/Private/Layouts/\n            1 = EXT:yoursitepackage/Resources/Private/Layouts/Extensions/Osm/\n        }\n    }\n}\n```\n\n### How to define own css or js?\n\nCSS and JS is included via Layout html template. You can simply adjust the paths to your needs.\n\n### Filter address in Pi2 to some pages\n\nIf you don't want to present all available tt_address records in your FlexForm selection for your editors, you can\nfilter it via Page TSconfig to one or more pages like:\n\n```\ntx_osm {\n  flexform {\n    pi2 {\n      addressPageIdentifiers = 2,3,4\n    }\n  }\n}\n```\n\n### Manipulate markers\n\nYou can manipulate markers via PSR-14 Eventdispatcher as described.\n\nConfiguration/Services.yaml in your sitepackage:\n\n```\nservices:\n  Vendor\\YourSitepackage\\EventListener\\OsmManipulator:\n    tags:\n      - name: event.listener\n        identifier: 'osm-marker-manipulation'\n        event: In2code\\Osm\\Domain\\Model\\MarkerContainer\n```\n\nExample dispatcher:\n\n```\n\u003c?php\ndeclare(strict_types=1);\nnamespace Vendor\\YourSitepackage\\EventListener;\n\nuse In2code\\Osm\\Domain\\Model\\Marker;\nuse In2code\\Osm\\Domain\\Model\\MarkerContainer;\n\n/**\n * Class OsmManipulator as an example\n */\nclass OsmManipulator\n{\n    /**\n     * @param MarkerContainer $markerContainer\n     * @return void\n     */\n    public function __invoke(MarkerContainer $markerContainer): void\n    {\n        /** @var Marker $marker */\n        foreach ($markerContainer-\u003egetMarkers() as $marker) {\n            $marker-\u003esetMarker(1);\n            $marker-\u003esetTitle('new title');\n            $marker-\u003esetDescription('new description');\n            $marker-\u003esetLatitude(10.00000);\n            $marker-\u003esetLongitude(10.00000);\n            $marker-\u003esetIcon('/typo3conf/ext/yoursitepackage/Resources/Public/Icons/Marker.png');\n            $marker-\u003esetIconHeight(28);\n            $marker-\u003esetIconWidth(28);\n            $marker-\u003esetIconOffsetX(1);\n            $marker-\u003esetIconOffsetY(-10);\n        }\n    }\n}\n```\n\n## Changelog\n\n| Version     | Date       | State   | Description                                                                                         |\n|-------------|------------|---------|-----------------------------------------------------------------------------------------------------|\n| 4.0.3       | 2024-08-23 | Bugfix  | Fix possible missing array key exception in Pi1                                                     |\n| 4.0.2       | 2024-04-12 | Bugfix  | Fix problem with tt_address TCA if there is no tt_address installed                                 |\n| 4.0.1       | 2024-02-05 | Bugfix  | Small bugfix for TYPO3 TER upload                                                                   |\n| 4.0.0       | 2023-12-28 | Task    | Support TYPO3 12                                                                                    |\n| 3.1.0       | 2023-01-11 | Task    | Prevent unneeded warning in log                                                                     |\n| 3.0.0       | 2022-05-30 | Task    | Update for TYPO3 10 and 11                                                                          |\n| 2.1.1       | 2022-01-24 | Bugfix  | Prevent no_cache warnings in TYPO3 log file; set correct repo url in composer.json                  |\n| 2.1.0       | 2021-03-17 | Task    | Add autorelease to TER function, add extension key to composer.json                                 |\n| 2.0.2       | 2020-09-30 | Bugfix  | Fix wrong translated german labels in backend for latitude/longitude.                               |\n| 2.0.1       | 2020-09-21 | Task    | Small label change.                                                                                 |\n| 2.0.0 (!!!) | 2020-09-18 | Feature | Allow more then only one address in Pi1 now. Allow to extend extension with PSR-14 eventdispatcher. |\n| 1.2.0       | 2020-08-13 | Bugfix  | Prevent `let` in JavaScript to support old browsers. Adjust marker size.                            |\n| 1.1.0       | 2020-08-13 | Task    | Some small improvements (marker image with outline, some adjustments of the views in backend)       |\n| 1.0.0       | 2020-08-12 | Task    | Initial release                                                                                     |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fin2code-de%2Fosm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fin2code-de%2Fosm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fin2code-de%2Fosm/lists"}