Code Monkey home page Code Monkey logo

osm_akuechler's Introduction

osm_akuechler Build Status Codacy Badge

A Joomla Plugin for Joomla 2.5 and 3.x to show an Openstreetmap map. The plugin use the Leaflet javascript library.

  1. Joomla
  2. Open Street Map
  3. Leaflet

The advantage of OpenStreetMap is that no license fees such as Google maps (see here) are necessary. OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world. (see Wikipedia)

Example

An example can be found here.

Usage

Write in one line, i.e.

<div class="osm-map" data-lat="51.047382" data-lon="13.734087" data-zoom="17">
  <div class="osm-point" data-lat="51.047382" data-lon="13.734087">
    <h3>
    	Spielplatz in der Innenstadt von Dresden.
  	</h3>
  </div>
  <div class="osm-point" data-lat="51.0466" data-lon="13.733087">
    <h3>
    	Parkplatz.
  	</h3>
    <p>
      Hier könnt ihr parken.
    </p>
  </div>
</div>
Name  Description
osm-map  DIV tag with the card data.
osm-point  DIV tag with a points, you can add lots of points. Included HTML text is for marker popup.
data-lat  Coordinate, Latitude
data-lon  Coordinate, Longitude
data-zoom  Zoom factor, depends on tiles server, between 1 and 18.
height  The height of DIV is the height of the card. Set the height via CSS, default is 400px.

CHANGELOG

see CHANGELOG.md

License

You can choose: MIT License or GPL-3.0

Leaflet is provided with the BSD 2-Clause License.

Configuration

No idea? Use the default value.

You can configurate the tile server URL. A tile server provides up to date map images. The default value is http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png. Another tile server is i.e. the Wikipedia tile server in Germany: http://{s}.www.toolserver.org/tiles/germany/{z}/{x}/{y}.png. Or you can choose you own tile server. See OpenStreetMap Wiki here and here. The describtion of the placeholders {s}, {x}, {y}, {z} can you find in the Leaflet documentation.

You can choose that the leaflet library is loaded not from your server but from Cloudflares CdnJS. This CDN (see Wikipedia) can rise the perfomance of your page and can reduce your webservers load.

osm_akuechler's People

Contributors

admiralsmaster avatar akuechl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

osm_akuechler's Issues

negative coordinates seem to have a problem!

Hi, I tried now with negative coordinates. Then there is only the line and not the map.
[EDIT:
oops: it was in a combination of an other extension! The problem is there, not here, sorry.
can be closed

BUG: With Joomla! 3.9.3 the map is gone!

Hi, with Joomla! 3.9.3 update the map is gone, even when textfilter are disabled. Your plugin is so good, but it seems Joomla! 3.9.3 is bullshit for this! Do you know a solution?

deprecated and error notations with example

Hi, your plugin is really interesting.
In our JEM-Joomlaeventmanager we are looking for an alternative to google. (For those who don't want to be integrated in this concern.)
So I found this plugin and tried to insert your example in an article within joomla!3.8.
The map is there, looks very good! But there are some error notifications:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentOsm_akuechler has a deprecated constructor in /srv/www/vhosts/mysite.ch/httpdocs/plugins/content/Osm_akuechler/Osm_akuechler.php on line 12

Notice: Only variables should be assigned by reference in /srv/www/vhosts/my.site.ch/httpdocs/plugins/content/Osm_akuechler/Osm_akuechler.php on line 37

Notice: Only variables should be assigned by reference in /srv/www/vhosts/mysite.ch/httpdocs/plugins/content/Osm_akuechler/Osm_akuechler.php on line 91

Notice: Only variables should be assigned by reference in /srv/www/vhosts/mysite.ch/httpdocs/plugins/content/Osm_akuechler/Osm_akuechler.php on line 73

Notice: Only variables should be assigned by reference in /srv/www/vhosts/mysite.ch/httpdocs/plugins/content/Osm_akuechler/Osm_akuechler.php on line 64

Perhaps it helps you (and me) to update. Thank you a lot.

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.