Download the PHP package in2code/osm without Composer

On this page you can find all versions of the php package in2code/osm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package osm

OSM - Open Street Map

Introduction

A small but modern OpenStreetMap extension for TYPO3 (11 and newer). You can simply show a map with or without markers. One or more addresses can be added as human-readable address or with geo coordinates.

A second plugin allows you to show addresses from tt_address records (when tt_address.latitude and .longitude is filled).

No jQuery, just vanilla JS. Modern asset collector used for includes of JS or CSS. PSR-14 eventdispatcher can be used to manipulate markers and labels.

:warning: TYPO3 13 compatibility\ See EAP page (DE) or EAP page (EN) for more information how to get access to a TYPO3 12 version

Plugin 1

Plugin 2

Note Ensure that fields tt_address.name, tt_address.description, tt_address.latitude and tt_address.longitude is filled correctly

Installation

Add this extension via composer (TYPO3 in classic mode could work but is not supported):

composer require in2code/osm

Don't forget to add typeNum 1597149189 for AJAX requests for the markers to your siteconfiguration like:

FAQ

How to overwrite paths?

As always via TypoScript setup - like

How to define own css or js?

CSS and JS is included via Layout html template. You can simply adjust the paths to your needs.

Filter address in Pi2 to some pages

If you don't want to present all available tt_address records in your FlexForm selection for your editors, you can filter it via Page TSconfig to one or more pages like:

Manipulate markers

You can manipulate markers via PSR-14 Eventdispatcher as described.

Configuration/Services.yaml in your sitepackage:

Example dispatcher:

Changelog

Version Date State Description
4.0.3 2024-08-23 Bugfix Fix possible missing array key exception in Pi1
4.0.2 2024-04-12 Bugfix Fix problem with tt_address TCA if there is no tt_address installed
4.0.1 2024-02-05 Bugfix Small bugfix for TYPO3 TER upload
4.0.0 2023-12-28 Task Support TYPO3 12
3.1.0 2023-01-11 Task Prevent unneeded warning in log
3.0.0 2022-05-30 Task Update for TYPO3 10 and 11
2.1.1 2022-01-24 Bugfix Prevent no_cache warnings in TYPO3 log file; set correct repo url in composer.json
2.1.0 2021-03-17 Task Add autorelease to TER function, add extension key to composer.json
2.0.2 2020-09-30 Bugfix Fix wrong translated german labels in backend for latitude/longitude.
2.0.1 2020-09-21 Task Small label change.
2.0.0 (!!!) 2020-09-18 Feature Allow more then only one address in Pi1 now. Allow to extend extension with PSR-14 eventdispatcher.
1.2.0 2020-08-13 Bugfix Prevent let in JavaScript to support old browsers. Adjust marker size.
1.1.0 2020-08-13 Task Some small improvements (marker image with outline, some adjustments of the views in backend)
1.0.0 2020-08-12 Task Initial release

All versions of osm with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
typo3/cms-core Version ^11.5 || ^12.3
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package in2code/osm contains the following files

Loading the files please wait ....