Download the PHP package hebbinkpro/pocketmap without Composer

On this page you can find all versions of the php package hebbinkpro/pocketmap. 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 pocketmap

PocketMap

A dynamic web-based world map for PocketMine-MP servers.
For a full overview over all functions of the plugin, go to the documentation

What is new in v0.5

Go to the changelogs

How to install

  1. Download the newest version of the plugin from Poggit CI
  2. Place the plugin in the plugins folder of your PocketMine-MP server
  3. Restart your server, this will load the plugin data.

    • If you are not hosting your server locally, you have to allocate a new port to your server.
    1. Allocate a new port for your server. If you don't know how to do this, contact your hosting provider.
    2. Go to the config.yml and change web-server.port to your new allocated port (replace 3000).
    3. Restart your server again.
  4. Go to http://<server_ip>:<web-server.port> to see the map.

How to use

Render a full world

If you have already created a world, and it is not yet (completely) visible on PocketMap, do the following:

Render new chunks

When you load new chunks in your world which have not been added to the map, the chunks will automatically be rendered.
If there are still chunks missing, make a full render of the world by executing /pmap render full <world>

Render updated chunks

When a player breaks or places blocks, the map will automatically be updated after some time.

Change rendering speed

If the rendering speed is too slow for you, or your server can't handle it anymore, you can change some values in the config.yml to resolve these issues.

Issues

Please report all issues you encounter here.

TO DO

This is a list of all things that have to be added before the release of v1.0.0

Commands

WebPage

Renderer

API

Credits

Documentation

This is the documentation of a lot of the PocketMap features.

Commands

Command Arguments

Some commands also need arguments, the following argument types are provided in this readme:

Help Command

Get a list of all command. Usage: /pmap help

Marker Command

Usage: /pmap marker

Common command arguments

Add Markers Command

Add markers to you map

Remove Markers Command

You can remove any marker with the marker remove command. Usage: /pmap marker remove <id> {world}

Reload Command

Reload some parts of the plugin data, this will apply most changes in the running plugin.

Available parts:

Usage: /pmap reload <part>

Render Command

You can render a specific area of the map by using the render command.
Usage: /pmap render {x} {z} {world} {zoom}

Full Render Command

Start a full world render for the given world.
Usage: /pmap render full {world}

Render Lookup Command

Lookup the chunk and region coordinates of a given world position.
Usage: /pmap render lookup {x y z} [zoom]

Web Map

On the webpage of PocketMap (http://<server_ip>:<pocketmap_port>/) you can view the real map. On the map you can do the following:

Textures

PocketMap makes use of the vanilla resource pack provided by bedrock-samples. To make PocketMap more consistent with your server, all resource packs you use in your server are also used in PocketMap.

Rendering

To show the map on the webpage, the minecraft world has to be rendered as images first. This is a complex process, and I'm constantly improving the rendering algorithm to make it faster and more efficient.

From chunk to image

When a chunk is being rendered, we loop through all x,z positions in the chunk and get the highest block at each of the positions.
For each block we get the block type name and the block state. With these values, the correct texture is inside the resource_packs/terrain_textures.json is found and used as the texture in the map.
Not all blocks are the same, and PocketMap tries to make all blocks appear like in the minecraft world, such as

Markers

There are different types of markers you can use in PocketMap. You can add three different types of markers using commands, but it is also possible to add markers by hand. The markers that are visible on the web map are all defined in the file markers/markers.json. It is also possible to add markers by hand.

Marker types

Command Markers

You can add some markers using commands. Please go to the marker command documentation for more details.

Plugin Markers

It is possible for plugins to make use of PocketMaps built-in marker system.

  1. Add PocketMap to the softdepend list in your plugin.yml. (Don't use the depend list, as this requires all users to use PocketMap otherwise they can't use your plugin).

  2. Include use Hebbinkpro\PocketMap\PocketMap; where you want to use the add markers.
  3. Add your markers

Available functions

Stored Markers

  1. Open the file markers/markers.json
  2. Go to the world your marker has to be displayed in
  3. Add the following to the world markers:

Marker Type Data

These are all marker data types that are implemented for the front-end using Leaflet's marker system.

Common data fields

These are commonly used fields for the data types given below

Position
Options

Icon

Circle

Polygon

Polyline

All versions of pocketmap with dependencies

PHP Build Version
Package Version
Requires hebbinkpro/pmmp-webserver Version ^0.4.2
muqsit/simple-packet-handler Version dev-pm5
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 hebbinkpro/pocketmap contains the following files

Loading the files please wait ....