Skip to content

Latest commit

 

History

History
77 lines (61 loc) · 2.59 KB

README.md

File metadata and controls

77 lines (61 loc) · 2.59 KB

Interactive-Map

MIT Licence under development

An interactive map with custom overlay, marker description and data table.

full

selection (Notice: The pictures above don't share confidential business information.)

Description

This is my first HTML and Javascript project and was build for Naturschutz-Tierpark Görlitz e.V.. It was first designed as digital archiving of all signs within the zoo. After I will have finished the project, i'm going to expand it as an "easy-to-create" interactive map for any usage.

To try this map:

  1. Create a Google API Key and replace '' (sign-map.html) ...
<script src="https://maps.googleapis.com/maps/api/js?key= <Google API Key> "></script>

For more information, see "Get API Key"...

  1. Go to Firebase
  2. Login with a Google account
  3. "GO TO CONSOLE"
  4. Create a new project
  5. Create a Firebase Realtime Database
  6. Change "Rules" to:
{
  "rules": {
    ".read": true,
    ".write": true
  }
}

For more information, see "Firebase Documentation"...

  1. Replace all required <information> (sign-map.html)
var config = {
				apiKey: "<Google API Key>",
				authDomain: "<Firebase Project Domain>",
				databaseURL: "<Firebase Database URL>",
				projectId: "<Firebase Project ID>",
				storageBucket: "",
				messagingSenderId: "<Firebase Messaging ID>"
};
  1. Open the file (sign-map.html) and add your first marker

Features

map

  • custom overlay-picture
  • adjustable zoom-level, center-position

marker

  • add one by clicking on the map
  • clickable (opens the info-window of this marker)
  • every marker has it's own settings and informations (icon, typ ...)

table

  • DataTables API
    • sortable, clickable, searchable
  • click on dataset opens the info-window of the appropriated marker
  • contains the information of all markers

database

Todo-List

  • filter for markers
  • styling with CSS
  • different maps in one file
  • add more comments