keudellcoding / humhub-modules-usermap Goto Github PK
View Code? Open in Web Editor NEWPHP module to display all users on a map.
License: MIT License
PHP module to display all users on a map.
License: MIT License
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.
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.
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}
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.
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!
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. 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.
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.
Is it possible to use this module without Google?
In Germany, Google integrations are very critical because of data protection.
Your issue may already be reported!
Please search on the issue tracker before creating one.
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
it remains 'Usermap'
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...
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.
// Specify the contents of the log file. You should replace personal information.
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}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.