Author Topic: Maps migration from Google to OpenStreetMaps  (Read 2221 times)

p.colin

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Maps migration from Google to OpenStreetMaps
« Reply #30 on: April 18, 2019, 01:23:17 PM »
Hello,
It's a good start, the Map works again.
Thank you

jbinner

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Maps migration from Google to OpenStreetMaps
« Reply #31 on: April 18, 2019, 07:56:41 PM »
Hub map will not center correctly. Everything showing in Italy.

PVI135

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Maps migration from Google to OpenStreetMaps
« Reply #32 on: April 20, 2019, 03:25:58 PM »
yes...can be  :D

ok, edit page hub_routes_maps.php.
go to line  78, you should see this code:    var map = L.map('map-container').setView([45, 10], 5);

setView should set map "starting point" and, 45, 10 are the coordinates.
Now, go to google maps (or Open street map) and go in your favorites location. Right click and select "show address". You can see the coordinates. Copy and use the value (only the integer part without decimal...so for example var map = L.map('map-container').setView([39, 3], 5); (39,3 is Palma island :-) )

That's all.

Attilio

Jose

  • Sr. Member
  • ****
  • Posts: 258
    • View Profile
Re: Maps migration from Google to OpenStreetMaps
« Reply #33 on: April 23, 2019, 03:13:17 PM »
Hello all!

Better solution to the hub_routes_map.php file.

Over line 78 (mentioned before), set this:

Code: [Select]
var center_lat = <?php echo $lat_centro?>;
var center_lon = <?php echo $long_centro?>;
var map = L.map('map-container').setView([center_lat, center_lon], 5);

This lines will get the latitude and longitude of the airport hub and set it to the center of the map.


jbinner

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Maps migration from Google to OpenStreetMaps
« Reply #34 on: May 02, 2019, 08:30:01 PM »
tried this for pilot history. Not working....trying to get center to be KMCI airport, which SHOULD be 39,94 But it keeps centering me over Russia somewhere.

PVI135

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: Maps migration from Google to OpenStreetMaps
« Reply #35 on: May 02, 2019, 08:46:51 PM »
Strange...if you try to insert this in google maps 39°00'00.0"N 94°00'0.0"E, it return a place over Cina.

BR,
Attilio

jbinner

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Maps migration from Google to OpenStreetMaps
« Reply #36 on: May 02, 2019, 08:48:11 PM »
that's what I get, but if I look in openstreetmaps it shows this for MCI:


39.2969, -94.7157

jbinner

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Maps migration from Google to OpenStreetMaps
« Reply #37 on: May 02, 2019, 08:48:43 PM »
I think I just answered my own question. its NEGATIVE -94 :)


thunfischbaum

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Maps migration from Google to OpenStreetMaps
« Reply #38 on: May 06, 2019, 10:45:50 PM »
Hi Guys,

Iam excited as hell. Is there any progress on the life flight map? :3

Thanks for all the work you are doing for the community.

jbinner

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Maps migration from Google to OpenStreetMaps
« Reply #39 on: June 06, 2019, 07:40:34 PM »
Has there been ANY movement on this yet? :( We have a flightsimcon we're attending this weekend and would LOVE to have the options "live" and not the google is not working plastered all over the page. I have ALL other maps swapped out.

Can someone help me with live map please? Or has someone done it already?

macofallico

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Maps migration from Google to OpenStreetMaps
« Reply #40 on: November 26, 2019, 06:45:11 PM »
will be working myself with a friend in the live map, is it working?

made work the airport_map.php - i upload 3 files from ¿juan? because its hard to find them in the posts all credits to him!

airport_map

hub_routes_map
pilot_flights_map
vampirep_map

https://drive.google.com/drive/folders/1wD4u1UEwL18L83auggtHixJfZ7efqhIU?usp=sharing

Thanks