Code Monkey home page Code Monkey logo

osmodul's Introduction

OSModul

OSModul is a simple module to display a map from OpenStreetmap on your Joomla website. More information on the Joomla Extensions Directory

Features

  • Easy to use
  • Set markers to the map
  • multiple marker support
  • marker popup
  • languages: EN, DE, FR, NL
  • custom marker support
  • based on Leaflet -> nice design
  • different maps on one site
  • no ads
  • different map styles
  • custom tile server support
  • auto update
  • moduleclass suffix
  • map scale

Demo usage

http://hof-ronig.de http://www.sailcom.ch

Help

For help and more information, take a look to the Wiki.

osmodul's People

Contributors

schlumpf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

osmodul's Issues

OSModul - no map ist shown

Hello,

i tried to use OSModul with Joomla 3.8 and jsn solid template.

image

Can anybody help me?

Greets
Thomas

Map not displaying

Hi,

Many thanks for producing OSModul.

I have tried to integrate it into my website at: https://www.carberysailing.com/other-yacht-sailing-courses/ocean-passages

My problem is that the map is not displaying and when I use Chrome's inspect function I can see that an error is being caught: Uncaught Error: Couldn't autodetect L.Icon.Default.imagePath, set it manually.

I am using JCT and have configured it to exclude leaflet.js as you have suggested.

I would appreciate any pointers to get this working.

Best regards

Chris Forker

Cluster Markers

Hi,
Is it possible to cluster markers based on zoom - the functionality provided by Leaflet.markercluster. Alternatively is it posisble to dip into the JS? Afraid I'm not familiar with Joomla, so don't know if there's an obvious way to just write the javascript myself.

Many thanks
Will

Module stopped working

Hi,
I installed this marvellous module on my site and it worked like a charm, but since yesterday it stopped functioning. The problem started after installing Admintools and activating .htaccess file.
Any help?

GDPR qos_token (cookie)

Hi, I noticed that if I set as map style = OpenStreetMap a cookie (qos_token) has to be allowed to see the map. If I use OpenStreetMap DE there are no cookies. Do you know why and if in the future even OpenStreetMap DE will add a cookie? I'm planning to do a big job replacing all Google Maps on my sites using a nocookie map. OpenStreetMap DE is perfect now for me, but I'm wondering if in the future they will add cookies too. Do you know something about it?
Thank you, my best regards
Francesco

Positioning of Custom Markers

I uploaded a custom marker, resized it to more or less fit the size of the standard marker (24x39, where the standard is 25x41) and added it. As Pin size I set 24x39. Then the below happens. The first picture shows where the marker is correctly set, if I zoom out (pictures 2&3) it seems that the positioning is done with the left upper corner (instead of the needle point) of the marker.

1
2
3

Max nr of custom markers?

Dear Martin,

thanks for your great Joomla Module. I started to build a Site for my opensource guidebook for Rome. I wanted to script about 50 custom pins with images in popups, but after the fifth pin it stopped to display the pins. I cant find a scripting error (I add ascreenshot of the backend)
the website is: http://dominique.turzer.eu/
link to screenshot:
sreen
Is there a maximum nr of custom pins?
I would be happy for any hint or help!!
All the best, Dominique

how to avoid "Strict Standards: Only variables should be assigned by reference in..." error

hello,
in order to avoid this PHP error:
"Strict Standards: Only variables should be assigned by reference in..."

I had to modify the line 15 of the "mod_osmod.php" file from:
$document =& JFactory::getDocument();
to:
$document = JFactory::getDocument();

I just downloaded the last version of Joomla (3.4.7) and of the OSModul and I'm in the Italian Aruba host where my configuration is:
http://www.capovaccaio.it/ver.php

after the correction all is working well:
http://www.capovaccaio.it/cms/index.php/contatti

thanks a lot!
good job,
francesco

Map refresh quirk?

Hello there,
Very happy to discover this module which will prevent me to give my payment infos to Google which now requests users to do so to use Googlemaps.

Although the module works perfectly on many of the maps I try to add to my website, on some of them it only displayed part of the map on top left corner of the container. If I drag it to fill the container, I can almost see everything but it sometimes does not refresh portions of it etc...

See below how it looks...

image

However, I just found out what the issue is: I added maps inside tabs from a nice tab plugin and apparently, the two don't get along well...

Solved the issue by taking maps out of the tabs and everything looks fine.

Food for thoughts :-)

Cheers

Philippe

Establish OSM connection via https instead of http

Dear Schlumpf,
first of all thank you for the neat joomla module. It is really helpful and works perfectly for my case.
I just realized, that the Firefox console complains about loading http content in my https secured website.
I just made a quick check to simply replace the http:// entries to openstreetmap by https:// in helper.php. Then the console messages are gone. As openstreetmap uses ssl by default, it should also work for other sites.
Can you update the module accordingly for the next version? :-)
Thanks!

OSMODUL don't working

Hello,
I am very happy to have discovered this module which allows to no longer use googlemaps, but I have a small problem: the module does not take into account the GPS coordinates
How do ?
Many thanks

Calling marker to pop-up

Hi Guys,
can someone tell me how to call particular marker on map to pop-up when button in joomla article was clicked? Suggested tip (Sydney) in osm modul wiki doesn't work for me. I have changed the map & marker IDs and clicking on word "SYDNEY" does nothing...

Thank You in advance for help :-)

coördinates inversed and marker (pin) not in the center

I just installed osmod, which is quite simple to use, but i coud not get the pin locate to the right point. When i changed however the longitude and the latitude it did. And a second issue: when opening the webpage with the module, the pin is not in the center but just outside the right border. How can i change this?
image

Karte wird nicht geladen

Im Firefox werden keine gpx Dateien mehr geladen, nachdem ich die Seite auf SSL umgestellt habe.
In der Konsole von Firefox bekomme ich folgende Fehler:

Laden von gemischten aktiven Inhalten "http://www.openlayers.org/api/OpenLayers.js" wurde blockiert.[Weitere Informationen] gesamtroute
Laden von gemischten aktiven Inhalten "http://www.openstreetmap.org/openlayers/OpenStreetMap.js" wurde blockiert.[Weitere Informationen]

Sind die URLs im Modul hinterlegt? Wenn ja, wäre eine Umstellung auf https möglich?

Gruß
Patrick

Module wil not show the right location

Good evening,

I try to get your module working in J4.3.4.

But when I fill in coordinates it shows the sea before Tanazania.... It should be somewhere in Portugal near Alcobaça.

I'm 100% shure that the code is right: 39.497904752190486, -8.983889475533436

Any ideas?

Load Markers from XML-File

Are there any possibilities to load custom Markers from an xml/json file.

I have a Database with locations that generates kml-files dynamically.

But to switch from Google to OSModul I have to use files generated out of this DB.

Thank you.

Additional text on top of map

I can't find any explanation how to add addition description text on top or below of map. Can you please give hints if this is possilble

Path to files (js, css, ...) not (always) correct

Hello,

Setup:

  • mod_rewirte on
  • OSMmodul embedded on page: example.org/my-site/about/where (note: my site's root is example.org/my-site/)

Result:
The paths to the js, css, and other files are wrong. Instead of example.org/my-site/media/mod_osmod/leaflet/leaflet.css the URL example.org/my-site/about/media/mod_osmod/leaflet/leaflet.css is requested by the browser.

Regards

Only grey frame showing when popup is defined

Martin,

when I define an extra markerpin with the following line it is working properly:

#parking{(52.295082,6.520745),,};

but when I use the following line (to get a text popup with the markerpin) I get a grey frame:

#parking{(52.295082,6.520745),,{#parkpop,immediately}};

I have defined the popup using the following line:

#parkpop{Parkeren};

I made shure that no Caching Optimizer is active within the Joomla-installation.

Any idea what could be the problem? Based on you documentation, I can't see any typos.

Regards,

Arjan.

MapQuest not working anymore

Just for your information: It seems that access to OpenStreetMap using the MapQuest style has changed. Instead of the map the following message ist displayed: "As of July 11, 2016, direct tile access has been discontinued." When using another style (for example: OpenStreetMap DE) in OSModul the map will be displayed as expected.

pills menu behind map.

Thank you for this module. Just running it through some tests and find my menu is behind the map. I tried changing the div to article in the advanced settings. I'm hoping you have an easy solution or setting. thank you.

  • Database Type | mysql
  • Database Version 5.7.38-0ubuntu0.18.04.1-log
  • collation utf8_general_ci
  • utf8mb4_general_ci
  • php version: 7.4.30
  • Joomla! 4.1.5 Stable [ Kuamini ] 21-June-2022 14:00 GMT
  • Embed Google Map | Site | Plugin | 2.3.0
  • chrome 20.x

menu_behind_map

a bit more obvious on this on

menu_behind_map_main_top

Number of additional markers limited

I use with Joomla 3.7.5 and show a map on my website. Additional Markers are as follows:
e.g.
#onlypin12{(55.3960591,12.8232123),#custom1,{#popup12,click}};

I defined from #onlypin1 to 24 but from 22 onwards the markers are not shown. Are additional markers limited ?

bug when using apostrophe in popup text

I suspect special characters are not properly escaped in popup text : using apostrophe (that is simple quote) breaks the module code.
Using module latest version with Joomla 3.6.5 and JCE editor 2.6.1

No map showing, only grey frame

Hello Martin,

we installed your module, but can't get it to view a map... We entered the coordinates and the frame with the zoom-tool is visible, but no map is being displayed, only a grey frame.

You can take a look at http://www.sportclubrijssen.nl/nl/informatie/locatie

For your information: we are using Joomla 3.4.8 with the (latest) Gantry 5 (version 5.2.6) Framework and the (latest) Gantry 5 based template "Hydrogen".

Thanks in advance for looking into it...

Regards,

Arjan.

Gray instead of map

I manage to install your module on several Joomla sites and I really like it. And since Google Maps get rid of users we have to find modules like yours. Keep up the good work :)
But with my last site I dont get any map - just a gray area. I tried every settings and I dont have any optimizing component installed. I tried to halt the JCE editor but nothing helps. Can you give a clue what to do? The url is http://sfro.com/index.php/kontakt/sfro-s-besiktningsman/

Best regards

Displaying map always with English names

Hi!
I'm looking for a way to display names in English from OSM even if it's in a non-English speaking country and found out that using the Cycle Map and the Transport Map show names in English as well as the local name. It's just a matter of adding "&layers=C" at the end of the URL. Is there a way to do that with OSModul?
Thank you.

Module not working

I was quite happy to discover this module and use it instead of Google, I've installed it on several sites and worked perfectly, but in one site, where there are multiple markers (16 of them) the module displays only the start position and it is not clickable, even if I chose "show pop up on click"
I used the default pin and openMaps layout.

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.