Advertisement:

Author Topic: OpenStreetMap Maps  (Read 1507 times)

Hartenheer

  • Guest
OpenStreetMap Maps
« on: June 18, 2018, 01:57:40 pm »
I have installed the OpenStreetMap Maps.
Sleutels bij de index.php ingevoerd.
allow_url_fopen = On
I just do not know where to place the secret key
The plugin is on, but do not see where it should work
I just do not know where to place the secret key.
The plugin is on, but do not see where it should work
Who else has advice for me


Ik heb de OpenStreetMap Maps geïnstalleerd.
Keys entered at the index.php.
allow_url_fopen = On
Ik weet alleen niet waar ik de geheime sleutel geplaatst moet worden.
De plugin staat aan, maar zie niet waar het moet werken
Wie heeft er nog advies voor me


Hartenheer

  • Guest
Re: OpenStreetMap Maps
« Reply #1 on: June 18, 2018, 02:37:03 pm »
Fault found.
Everything is still not in https  but in http

Hartenheer

  • Guest
Re: OpenStreetMap Maps
« Reply #2 on: June 21, 2018, 04:17:18 pm »
Does anyone know if the OpenStreetMap plugin is being upgraded for https?

Weet iemand of de plugin OpenStreetMap wordt opgewaardeerd voor https?

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: OpenStreetMap Maps
« Reply #3 on: June 22, 2018, 05:46:55 pm »
Plugin (https://market.osclass.org/plugins/maps/openstreetmaps-maps_161) was last updated in November 2015, I doubt it will be maintained by the author any more, since I haven't heard from him since.

I haven't used it in a while, but it shouldn't be hard to replace http to https in 3 files (it's safe to use search & replace):

1. index.php
2. map.php
3. leaflet.js

Hopefully it will still work, if the js API hasn't changed since.

Regards
dev101

Hartenheer

  • Guest
Re: OpenStreetMap Maps
« Reply #4 on: June 22, 2018, 05:48:47 pm »
I tried this, but only get an empty field


Dit heb ik geprobeerd, maar krijg alleen een leeg veld
There is no leaflet.js in the download
« Last Edit: June 22, 2018, 05:53:17 pm by Hartenheer »

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: OpenStreetMap Maps
« Reply #5 on: June 22, 2018, 06:25:17 pm »
Then API is probably changed (that happens in 2 years) and requires updating.

Hartenheer

  • Guest
Re: OpenStreetMap Maps
« Reply #6 on: June 22, 2018, 07:14:44 pm »
New api created.
Unfortunately nothing

Nieuwe api aangemaakt.
Helaas niets

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: OpenStreetMap Maps
« Reply #7 on: June 22, 2018, 09:37:55 pm »
I have just tested the plugin, it still works fine, even with http (no https switch in the code). Why it does not work in your case I do not know, but OSM is very sensitive to wrong data input, you have to be careful about region, city, if anything is wrong, or if it contain a keyword it doesn't like (e.g. "some region" or "some city"), it will code 0.00/0.00 for lat/lon coordinates. Google Maps API is far more resilient to input errors and interpretations, that's why it's the best and without real competition atm.

Hartenheer

  • Guest
Re: OpenStreetMap Maps
« Reply #8 on: June 22, 2018, 09:42:00 pm »
Strange, I only get to see an empty part.
Google maps has problems with Java.

Vreemd, Ik krijg allee een leeg gedeelte te zien.

Google maps heeft problemen met Java.

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: OpenStreetMap Maps
« Reply #9 on: June 22, 2018, 09:44:27 pm »
It's the problem with your address in that case, it does not understand the location. Make sure you have it all right (region, city, street address).
Also, map will be updated only if you edit or post new item, that's how it works, which you have to do when updating location, anyway.

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: OpenStreetMap Maps
« Reply #10 on: June 22, 2018, 09:45:22 pm »
I'm not sure what javascript (not Java) conflict you have with Google Maps plugin, maybe it is caused by your theme (wouldn't be the first time I've seen it).

Regards

Hartenheer

  • Guest
Re: OpenStreetMap Maps
« Reply #11 on: June 22, 2018, 09:46:58 pm »
I will make a print screen.

Ik zal een printscreen maken.

Added.

I want to download it again, but now I have to pay for a key

Ik wil hem opnieuw downloaden, maar nu moet ik betalen voor een sleutel
« Last Edit: June 22, 2018, 09:52:44 pm by Hartenheer »

Hartenheer

  • Guest
Re: OpenStreetMap Maps
« Reply #12 on: June 22, 2018, 09:59:08 pm »


This is what I see with osm


Hartenheer

  • Guest
Re: OpenStreetMap Maps
« Reply #13 on: June 22, 2018, 10:08:50 pm »
I think it is odd.
See only where to place the key.
I can not find where the secret key is.


Ik vind het vreemd.
Zie alleen waar je de sleutel moet plaatsen.
Waar de geheime sleutel moet kan ik niet vinden.

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: OpenStreetMap Maps
« Reply #14 on: June 23, 2018, 04:16:27 pm »
Switch to Bender theme and check again. I definitely see map holder, even with no map loaded.
I don't understand about keys, you can generate them in MQ's dashboard. Secret key is not used.