flyalaska Posted January 7, 2016 Report Posted January 7, 2016 Any idea how do edit MY ROUTES MAP - /index.php/pireps/routesmap I thought it was route_map.php, the changes are not being made. Quote
web541 Posted January 7, 2016 Report Posted January 7, 2016 try flown_routes_map.php . I had the same problem, it seemed obvious that it would be route_map, but no. *If you are looking to change the style of the map instead of the default, Go to https://snazzymaps.com/ and find a map you like, then Replace var map = new google.maps.Map(document.getElementById("routemap"), options); With this var styles = PASTESTYLEHERE // Create a new StyledMapType object, passing it the array of styles, // as well as the name to be displayed on the map type control. var styledMap = new google.maps.StyledMapType(styles, {name: "Flight Map"}); // Create a map object, and include the MapTypeId to add // to the map type control. var mapOptions = { zoom: 11, center: new google.maps.LatLng(55.6468, 37.581), mapTypeControlOptions: { mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'map_style'] } }; var map = new google.maps.Map(document.getElementById('routemap'), mapOptions); //Associate the styled map with the MapTypeId and set it to display. map.mapTypes.set('map_style', styledMap); map.setMapTypeId('map_style'); and replace PASTESTYLEHERE with your Javascript Style Array from snazzymaps Quote
flyalaska Posted January 7, 2016 Author Report Posted January 7, 2016 Thats exactly what I am trying to do. I have my other maps changed, just looking where to edit the route map. Thank you!! Quote
natcret Posted January 8, 2016 Report Posted January 8, 2016 This was a really great tip. Worked like a charm for me. One key hint for new folks (I am also) that I would to share is where he states above: var style = PASTESTYLEHERE This is where you PASTE the start of Javascript code (the initial LEFT BRACKET), i.e.: var style = [ Again, thanks for the tip! Quote
Heritage1 Posted January 13, 2016 Report Posted January 13, 2016 Checked out the above, thanks, I'm gonna try our front page Live acars map, hehehe, wish me luck, I might drown. Cool map site by the way, didn't even know it exsisted, again thanks. Jimbo Quote
web541 Posted January 13, 2016 Report Posted January 13, 2016 No worries, for the ACARS Map, you may want to have a look at this http://forum.phpvms.net/topic/22627-guide-changing-the-look-of-the-acars-map/ Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.