help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Feature requests for JEM 2.0 - initial public release

FR: Integration Openstreetmap as Alternative to Google

FR: Integration Openstreetmap as Alternative to Google

7 years 3 months ago - 7 years 2 months ago
#24367
The following posts are from a research about openstreetmap and joomla. Perhaps someone can use and develop an alternative to googlemaps for JEM

I found this very interesting plugin:
kuechler.info/programme/217-osm-plugin-for-joomla.html

beneath that the OsModule in JED
and here for a lot of venues on one map: the php writeOsModule.php from a post here in this forum, which works with OsModule

If you want to have a look, see in article content on:
intra.folk-tanz.ch/index.php/de/

EDIT: It even works inside of the description part of JEM venue
Last edit: 7 years 2 months ago by jojo12.

Please Log in or Create an account to join the conversation.

Re: FR: Integration Openstreetmap as Alternative to Google

7 years 2 months ago - 7 years 2 months ago
#24424
Collecting interessant infos:
on Joomladay2017 DE there was an interesting session about leaflet.js. from Astrid Günther
you find it in german on youtube:
JD17DE J & Beyond
Last edit: 7 years 2 months ago by jojo12.

Please Log in or Create an account to join the conversation.

Re: FR: Integration Openstreetmap as Alternative to Google

7 years 2 months ago - 6 years 11 months ago
#24428
In addition Astrid Günther (astridx) has a tutorial How to create a plugin which links given coordinates in articles to openstreetmaps. On github: github.com/astridx/magazin
Plg_content_coordstomap

but this gives a map with the given coordinates without marker
When I replace in coordstomap.php line 54 with
Code:
$replacement = '<a href="http://www.openstreetmap.org/?mlat=$1&mlon=$2&zoom=15&layers=M">$1 $2</a>';
I get a marker as center of the map (which is the venue)

there is an additional thing how to insert coordinates for the above plugin
github.com/astridx/magazinXTDButton
This has some typos (must be agosmmapbutton)!
and works only with JCE editor. But this works in the description of the venue part!
Please try!

EDIT:
lan and lon are not marked places
mlan and mlon are marked places
&layers different types of maps

EDIT2:
line 48 in astridx coordstomap.php
doesn't work with negative coordinates (South and West)
this must be changed to:
Code:
$pattern = "/(-?[0-9.]+) (-?[0-9.]+)/";
Last edit: 6 years 11 months ago by jojo12.

Please Log in or Create an account to join the conversation.

Re: FR: Integration Openstreetmap as Alternative to Google

7 years 2 months ago
#24431
It's interesting:
it works in the description part of venue, when you're using the venue view, meanwhile in the event view there is no link in the description part of the venue!

Please Log in or Create an account to join the conversation.

Re: FR: Integration Openstreetmap as Alternative to Google

7 years 2 months ago
#24432
very interesting seems too:
mapstraction.com

What Is Mapstraction?

Mapstraction is a Javascript library that provides a single, common interface for a wide variety of Javascript map APIs. It’s designed to enable a developer to switch from one maps API to another as smoothly and as quickly as possible.
...

Please Log in or Create an account to join the conversation.

Re: FR: Integration Openstreetmap as Alternative to Google

7 years 2 months ago
#24435
I tried to insert divs into the description of the venue via the changed coordstomap plugin to get an osm-map inside.
Inside of Joomla articles this works fine. But JEM seems to eliminate the divs!

Please Log in or Create an account to join the conversation.

Time to create page: 0.560 seconds