Skip to content

About

3D visualisation for Mapbender using MapComponents

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Mapbender 3D Element

Visualise 3D content in the Mapbender framework using MapComponents. This library is currently in development.

Installation

(in your mapbender installation while the working directory is the application directory)

while the library is in development and not published on Packagist:

composer config repositories.mapbender-3d vcs https://github.com/mapbender/mapbender-3d
composer require "mapbender/mapbender-3d":"dev-main"

later:

composer require "mapbender/mapbender-3d"

Development - Mapbender

The module is a regular symfony bundle. Its source is in src-php. The bundle supplies the ThreeDView element that shows a button (to switch to the 3D view) as well as the iframe to include the MapComponents application.

The Mapbender layer tree controls which 3D sources are rendered and supplies their settings. The iframe has no layer configuration editor and starts with an empty layer configuration until Mapbender sends its sources. Configuration and tileset loading errors are sent to the same-origin parent and displayed through Mapbender's error notifications.

Development - MapComponents

npm i # local npm installation (npm i --force might be necessary)
npm run dev # local test with live reload at localhost:5173
npm run build # compiling for the Mapbender library

The build output directory is src-php/Mapbender/Mapbender3DBundle/Resources/public/iframe. This code should be committed to the repository. The mapbender installation where the library is used will use this compiled code in the iframe.

If during testing you want to test the live reload version of the MapComponents application, add the following in your parameters.yaml:

mapbender.3d.iframe_url: http://localhost:5173/

This will override the default iframe url location.

About

3D visualisation for Mapbender using MapComponents

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages