GithubHelp home page GithubHelp logo

keudellcoding / humhub-modules-usermap Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 6.0 205 KB

PHP module to display all users on a map.

License: MIT License

PHP 63.31% CSS 36.69%
humhub humhub-module maps geolocation usermap leaflet openstreetmap geocoding-api

humhub-modules-usermap's People

Contributors

karlkeu00 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

humhub-modules-usermap's Issues

Instructions on how to get it work missing

It would be nice if you could tell us how we can actually get the map showing up and where it actually should show up. We installed the module but can't find any settings or Menus which show the map with the people.

Posibility to geolocate without street

In some contexts were using this tool not everybody has or wants to put in his street. So it would be great to make pull the geolocation based on the city also. Nice would be a checkbox in the adminpanel if to decide if the geocoding is using streets or not.

Update Humhub 1.11

Module doesn't work anymore - so i tried ti install it new - the following error occures:

FEHLER  Thu, 21 Apr 2022 07:45:00 +0200 application
Error: Class 'humhub\modules\directory\widgets\Menu' not found in /path..to..humhub/protected/modules/usermap/config.php:19
Stack trace:
#0 /path..to..humhub/protected/humhub/components/bootstrap/ModuleAutoLoader.php(77): include()
#1 /path..to..humhub/protected/humhub/components/bootstrap/ModuleAutoLoader.php(48): humhub\components\bootstrap\ModuleAutoLoader::findModules(Array)
#2 /path..to..humhub/protected/humhub/components/bootstrap/ModuleAutoLoader.php(34): humhub\components\bootstrap\ModuleAutoLoader::locateModules()
#3 /path..to..humhub/protected/vendor/yiisoft/yii2/base/Application.php(325): humhub\components\bootstrap\ModuleAutoLoader->bootstrap(Object(humhub\components\console\Application))
#4 /path..to..humhub/protected/vendor/yiisoft/yii2/base/Application.php(271): yii\base\Application->bootstrap()
#5 /path..to..humhub/protected/vendor/yiisoft/yii2/console/Application.php(124): yii\base\Application->init()
#6 /path..to..humhub/protected/humhub/components/console/Application.php(90): yii\console\Application->init()
#7 /path..to..humhub/protected/vendor/yiisoft/yii2/base/BaseObject.php(109): humhub\components\console\Application->init()
#8 /path..to..humhub/protected/vendor/yiisoft/yii2/base/Application.php(204): yii\base\BaseObject->__construct(Array)
#9 /path..to..humhub/protected/vendor/yiisoft/yii2/console/Application.php(89): yii\base\Application->__construct(Array)
#10 /path..to..humhub/protected/humhub/components/console/Application.php(52): yii\console\Application->__construct(Array)
#11 /path..to..humhub/protected/yii(28): humhub\components\console\Application->__construct(Array)
#12 {main}

Adding an random jitter to the geolocation

Normally using geolocation with people in the same city there is the problem, that all the markers are at the same place. In other context I used an random method to add an offset to each individual point. This would also cover the privacy of people if there is a geolocation based on streetnames.

Error: This API project is not authorized to use this API.

Hi,

I get the following error:

array(3) {
  ["error_message"]=>
  string(51) "This API project is not authorized to use this API."
  ["results"]=>
  array(0) {
  }
  ["status"]=>
  string(14) "REQUEST_DENIED"

}

Geocoding Api Key is configured, no restrictions. Any ideas?

Thanks!

Getting unknown property: humhub\modules\usermap\Module

Installed this about a week ago, seems to be working ok but have started getting this error:

yii\base\UnknownPropertyException: Getting unknown property: humhub\modules\usermap\Module::showOnMapCallback in /home/myhumhubdirectory/protected/vendor/yiisoft/yii2/base/Component.php:155
Stack trace:
#0 /home/myhumhubdirectory/protected/vendor/yiisoft/yii2/di/ServiceLocator.php(77): yii\base\Component->__get('showOnMapCallba...')
#1 /home/myhumhubdirectory/protected/modules/usermap/widgets/MapView.php(66): yii\di\ServiceLocator->__get('showOnMapCallba...')
#2 /home/myhumhubdirectory/protected/modules/usermap/widgets/MapView.php(47): humhub\modules\usermap\widgets\MapView->getAllUsers()
#3 /home/myhumhubdirectory/protected/humhub/components/Widget.php(63): humhub\modules\usermap\widgets\MapView->run()
#4 /home/myhumhubdirectory/protected/modules/usermap/views/map/index.php(25): humhub\components\Widget::widget(Array)
#5 /home/myhumhubdirectory/protected/vendor/yiisoft/yii2/base/View.php(348): require('/home/lacesiste...')
#6 /home/myhumhubdirectory/protected/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/home/myhumhubdirectory...', Array)
#7 /home/myhumhubdirectory/protected/vendor/yiisoft/yii2/base/View.php(156): yii\base\View->renderFile('/home/lacesiste...', Array, Object(humhub\modules\usermap\controllers\MapController))
#8 /home/myhumhubdirectory/protected/vendor/yiisoft/yii2/base/Controller.php(410): yii\base\View->render('index', Array, Object(humhub\modules\usermap\controllers\MapController))
#9 /home/myhumhubdirectory/protected/modules/usermap/controllers/MapController.php(19): yii\base\Controller->render('index', Array)
#10 [internal function]: humhub\modules\usermap\controllers\MapController->actionIndex()
#11 /home/myhumhubdirectory/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#12 /home/myhumhubdirectory/protected/vendor/yiisoft/yii2/base/Controller.php(181): yii\base\InlineAction->runWithParams(Array)
#13 /home/myhumhubdirectory/protected/vendor/yiisoft/yii2/base/Module.php(534): yii\base\Controller->runAction('', Array)
#14 /home/myhumhubdirectory/protected/vendor/yiisoft/yii2/web/Application.php(104): yii\base\Module->runAction('usermap/map', Array)
#15 /home/myhumhubdirectory/protected/vendor/yiisoft/yii2/base/Application.php(392): yii\web\Application->handleRequest(Object(humhub\components\Request))
#16 /home/myhumhubdirectory/index.php(25): yii\base\Application->run()
#17 {main} 

The possibility of using OpenLayers (OSM), or other free alternatives.

The possibility of using OpenLayers (OSM), or other free alternatives. Thanks

First of all thank you for your development.
Would it be possible to use OpenLayers (or other free options) as alternatives to Google/Mapbox/Here?

I believe that in TikiWiki there are modules based on OpenLayers.

All the best.

Adding custom tileserver

Right now the tileserver for the maps is hardcoded to osm. It would be great to have the possibility to change this to another server. Especially in the EU the usage of the basic tileserver is critical trough the law, because it doesn't fits the data protection laws.

How to use without google?

Is it possible to use this module without Google?
In Germany, Google integrations are very critical because of data protection.

Do you know how to go about translating this module?

Your issue may already be reported!
Please search on the issue tracker before creating one.

Expected Behavior

i thought i would create a ~/humhub/protected/config/messages/en-US/UsermapModule.base.php file and add return [ 'Usermap' => 'Global Map' ]; to it and it would change the top nav menu title

Current Behavior

it remains 'Usermap'

Possible Solution

maybe there is some trick to translating? maybe the filename i am trying to use is not correct? i noticed there are no messages folder in the module like there are in most of the hubhub core modules...

Context

i'd like to be able to rename the top nav menu item in english, but then also translate it into other languages as well.

Your Environment

  • Version used: 1.2.4
  • Browser Name and version: chrome
  • Operating System and version (desktop or mobile): mac
  • Link to your project:

Log Output

// Specify the contents of the log file. You should replace personal information.

Error: Class 'humhub\modules\directory\widgets\Menu' not found in

Same Error by Installation over Admin Store.
Log:

Error: Class 'humhub\modules\directory\widgets\Menu' not found in /..../protected/modules/humdav/config.php:23
Stack trace:
#0 /..../protected/humhub/components/bootstrap/ModuleAutoLoader.php(77): include()
#1 /..../protected/humhub/components/bootstrap/ModuleAutoLoader.php(48): humhub\components\bootstrap\ModuleAutoLoader::findModules(Array)
#2 //..../protected/humhub/components/bootstrap/ModuleAutoLoader.php(34): humhub\components\bootstrap\ModuleAutoLoader::locateModules()
#3 /..../protected/vendor/yiisoft/yii2/base/Application.php(325): humhub\components\bootstrap\ModuleAutoLoader->bootstrap(Object(humhub\components\console\Application))
#4 /..../protected/vendor/yiisoft/yii2/base/Application.php(271): yii\base\Application->bootstrap()
#5 /..../protected/vendor/yiisoft/yii2/console/Application.php(124): yii\base\Application->init()
#6 /..../protected/humhub/components/console/Application.php(90): yii\console\Application->init()
#7 /..../protected/vendor/yiisoft/yii2/base/BaseObject.php(109): humhub\components\console\Application->init()
#8 /..../protected/vendor/yiisoft/yii2/base/Application.php(204): yii\base\BaseObject->__construct(Array)
#9/..../protected/vendor/yiisoft/yii2/console/Application.php(89): yii\base\Application->__construct(Array)
#10 /..../protected/humhub/components/console/Application.php(52): yii\console\Application->__construct(Array)
#11 /..../protected/yii(28): humhub\components\console\Application->__construct(Array)
#12 {main} 

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.