Giter Club home page Giter Club logo

moodle-block_usersmap's Introduction

moodle-block_usersmap

A Moodle block that shows a map of users, using Leaflet, Leaflet-markercluster, OpenStreetMap and GeoNames.

Largely inspired by https://github.com/alexlittle/moodle-block_online_users_map

The base map layer can be chosen among OpenStreetMap, Google Satellite (hybrid), Google Streets (plan) or custom tile server (URI scheme).

The geolocation service can be GeoNames (free registration required) or custom (URI scheme).

Each block instance can show (all|online) x (Moodle|enrolled) users, and optionally display the total number of (Moodle&|enrolled) users below. Users having an activity more recent than 15 minutes are considered online.

English and french versions included / versions anglaise et française incluses.

continuous integration

Build Status

moodle-block_usersmap's People

Contributors

kstefanini avatar nikpap avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

moodle-block_usersmap's Issues

When a city exist in several countries the map pin goes "where it wants"

to test #1 I created 2 users and enrolled them in a test course

user 1 : city : naples, country: none
-> it's not showing on the map

user 2 : city naples, country US
-> it's showing on italy on the map

Capture d’écran de 2021-03-29 16-23-43

Capture d’écran de 2021-03-29 16-36-44

If i recall correctly the webservice doesn't check the country filed and only question osm/or other service? Moreover i'm not sure fixing this was in the contract?

@CrymSonir maybe you know better.
(I don't have the right here to assign this ticket to you ^^ )

Performance

On slow computers, a map with thousands of points might make the browser hang (experienced on http://mooc.tela-botanica.org with 35000+ points).
Maybe relative to Leaflet or leaflet-markercluster ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.