Implementing Google Maps API 3.0

Discussion in 'Feedback & Suggestions' started by Pat Curran, May 6, 2013.

  1. Pat Curran

    Pat Curran Administrator
    Staff Member

    Oct 20, 2012
    2,634
    17
    Co. Kilkenny, Ireland
    Hi All,

    I am currently seeking a quotation for a Forum upgrade from Audentio Design. Below is a copy of the quotation request sent this AM:

    The new Location Map page will allow us to show locations pertaining to the research currently underway on the Forum and thereby enhance readers' understanding of the work we do. Sensitive locations such as C-47 crash sites will not however be shown.

    I would welcome feedback and suggestions regarding this enhancement from all Forum users.

    Thanks,

    Pat
     
  2. John Szweda

    John Szweda Administrator
    Staff Member

    Oct 25, 2012
    584
    9
    Male
    Milwaukee, Wisconsin
    Hi Pat,
    I am all for such an idea. Anything that helps identify locations of incidents and those involved, I feel would be a great addition to the forum.
    I would really like to see how it works, then maybe even expand on it for other uses.
    Is it one general map with multiple points on it, or are there seperate maps for each topic or incident?
    Any possibility of having a closed portion for Advanced researchers?

    John
     
  3. Pat Curran

    Pat Curran Administrator
    Staff Member

    Oct 20, 2012
    2,634
    17
    Co. Kilkenny, Ireland
    Hi John,

    I thought about running two separate maps; one for the open forum and one for the 'Green Room' and that may well be the way to go but I note from Google's T&Cs at 9.1 that they will not allow the free version to be used unless the web site is freely accessible to the public. I think this restriction only applies if the site is charging a fee to visitors but I need to check if our restricted access 'Green Room' would breach these T&Cs.

    In any event, I think we should get the public Map up and running first. I am not fully au fait with the Google Maps API but my understanding is that it is very customisable and I have ordered a copy of "Beginning Google Maps API 3" in order to improve my knowledge of the subject. I am pretty sure you can put markers on the Map which can be linked to a web address (in our case a forum post) but I am not sure if you can do it the other way round - put a link in a Forum post to a marker on the Map.

    I was going to have a go at implementing the project myself but I am not a good enough coder to guarantee that the Forum would not come crashing down :D - better let the experts do the job correctly and then I can fool around with tweaking the features of the implemented Map. At least if I screw up there, the only consequence would be a blank Map window - I hope :cool:

    Regards,

    Pat
     
  4. patelie

    patelie Active Member
    Researcher

    Hello

    For your information, I made, on Google earth a layer with information I found in glider pilots interrogation reports.
    From the information they gave (and was able to read on the microfilm) there is the names of pilots, serial, chalk and landing ccordinates given in GSGS format (and translated with the translator of coordinates)
    unfortunately the microfilm was poor and I got only 10 gliders
    it's a file in .kmz format, available of course for the project
     
  5. Pat Curran

    Pat Curran Administrator
    Staff Member

    Oct 20, 2012
    2,634
    17
    Co. Kilkenny, Ireland
    Thanks Patrick,

    Glider landing sites alone would certainly be a very good reason to implement Google Maps on the Forum. I presume there is some way of putting particular types of markers on different layers so that if the Map looks too full, you can turn off the layers that are not needed. If for example you only want to see 508th PIR markers and the Map shows all markers for all airborne units, you can just turn off everything except those pertaining to that regiment.

    Looking forward to seeing what can be done with this tool.

    Regards,

    Pat
     
  6. Pat Curran

    Pat Curran Administrator
    Staff Member

    Oct 20, 2012
    2,634
    17
    Co. Kilkenny, Ireland
    OK,

    I have reached agreement with Mike at Audentio Design for a costing and the fee has been paid over. Mike hopes to commence work either today or tomorrow.

    I asked him to have the map open as per this location and zoom level.

    This can be easily tweaked later but have a look and see what you think.

    Regards,

    Pat
     
  7. Pat Curran

    Pat Curran Administrator
    Staff Member

    Oct 20, 2012
    2,634
    17
    Co. Kilkenny, Ireland
    Hi Guys,

    While waiting for Audentio Design to implement Google Maps on a new page within the Forum, I have been doing a bit of fooling around on a 'scratch pad' safely outside the walls so that my amateur coding does not bring the roof crashing down on us ;)

    Can you guys please take a look at my 'Demo' here and let me have any bug reports?

    Obviously to expand this 'goto' feature with lots more locations, I will have to implement some form of drop down list to replace the individual buttons.

    Bare bones stuff at the moment - the top button titled 'Home Map' brings you back from the three lower locations and... well, that's about it for version 1.0 :D

    Comments, bug reports and suggestions on expanding are very welcome and appreciated.

    Thanks,

    Pat
     
  8. John Szweda

    John Szweda Administrator
    Staff Member

    Oct 25, 2012
    584
    9
    Male
    Milwaukee, Wisconsin
    Hi Pat,
    I like what you have done.
    Would there be a way of identifying a specific location with a pin or dot or something simular on these maps ?
    I could see placing specific locations for gliders in the Keystone field, or even tanks or the bazooka teams at La fiere.

    Respectfully,
    John
     
  9. Pat Curran

    Pat Curran Administrator
    Staff Member

    Oct 20, 2012
    2,634
    17
    Co. Kilkenny, Ireland
    Hi John,

    Yes. just reading up on the placing and use of pins and other markers at the moment. I am also going to have a go at designing custom markers for Horsa and Waco gliders. If anyone can find a drawing of overhead views showing either glider, please send them on for use as templates.

    The four map views in the Demo are all just the same map with a bit of javascript action triggered when you click each button. As an example, the code below is the section which manages the 'Sainte Mere Eglise' button:

    Code:
            
    	document.getElementById('changeValues_sme').style.width="150px";
    	document.getElementById('changeValues_sme').onclick = function() {
    
                    map.setOptions({
    
                            center: new google.maps.LatLng(49.4089, -1.318308),
    
                            zoom: 15,
    
                            mapTypeId: google.maps.MapTypeId.SATELLITE
    			});
    		}
    
    
    The first line sets the button width to 150 pixels wide regardless of the caption. This keeps all the buttons looking neat otherwise they would expand and contract according to the number of letters used.

    The next line calls a function when the 'Sainte Mere Eglise' button is clicked and this function performs three tasks:
    • Sets the map coordinates to 49.4089, -1.318308 (Sainte Mere Eglise)
    • Zooms to level 15 (found by trial and error for the size of this town)
    • Changes the map type from road map to satellite view (as in Google Earth)

    The other buttons work the same with the top 'Home' button putting the map back to the opening location and zoom level.

    The objective is to add many more options by means of drop down lists and perhaps keeping just a small number of buttons for the major invasion areas such as the five beaches and the American and British airborne sectors.

    This 'goto' feature of the map is really just a quick way of getting to where you want to be. The real usefulness will be in the placement of the markers as you suggest. Eventually, the ultimate objective would be to have a button in the posting area whereby the user could create a marker on the map to show where that particular post is referring to. The marker on the map would also have a reciprocal link back to the post. I am not sure how much coding work would be needed for this to come to life, but in the meantime other, less demanding enhancements can be made to happen.

    Regards,

    Pat
     
  10. John Szweda

    John Szweda Administrator
    Staff Member

    Oct 25, 2012
    584
    9
    Male
    Milwaukee, Wisconsin
    Pat,
    For a Waco glider try Esvelin's book D-Day Gliders page 24.
    John
     
  11. Jpz4

    Jpz4 Active Member
    Researcher

    Oct 24, 2012
    362
    6
    I've designed Waco and Horsa drawings for my own GE. Pretty basic, but that's all we need. Check your inbox.
     
  12. Pat Curran

    Pat Curran Administrator
    Staff Member

    Oct 20, 2012
    2,634
    17
    Co. Kilkenny, Ireland
    Thanks Niels,

    They look very good and will do the job nicely. I'll add them to the demo map tonight.

    There is also a nice collection of icons by Nicholas Mollet on his site here, but I don't see a 'Battlefield' set - perhaps he might make us one especially for the Forum :idea:

    Regards,

    Pat
     
  13. Pat Curran

    Pat Curran Administrator
    Staff Member

    Oct 20, 2012
    2,634
    17
    Co. Kilkenny, Ireland
    OK,

    We have a new page titled 'Location Map' implemented by Mike at Audentio Design - thanks Mike; excellent job ;)

    Now I have to do my part and get the interface working as would best serve our purposes here. Suggestions are very welcome :D

    You will note a marker icon used as a demo to show the location of the Canadian cemetery at Beny sur Mer. This icon is part of a set created by Nicolas Mollet on his site here. I have asked Nicholas to create for us some icons in the same design as that showcased on his site. Initially, I have requested him to create three custom icons:
    • Horsa Glider
    • Waco Glider
    • Cemetery (Combined Christian & Jewish Markers)

    Niels has sent me his glider templates which I will forward to Nicholas for incorporation into the new icons:

    [​IMG]


    [​IMG]

    The existing cemetery icon will be amended to include a Jewish marker beside the Christian one already showing and I think it might be a good idea to add an 'M' in the top right corner for 'Military'.

    I would welcome further suggestions for these three icons before the designs are finalised.

    Thanks,

    Pat
     
  14. Francois Dumas

    Francois Dumas Administrator
    Staff Member

    May 18, 2013
    129
    0
    Male
    publisher (semi)retired
    Italy
    Darn, I lost track of this thread :) Looks VERY nice indeed ! I too use the Google Maps and integrated it into my Aviation Classics website, but on a simpler base. I just made 'custom maps' on my Google account and display these on the various pages of my (Wordpress) websites. Effective,l but not as nice as this API option of course! Well done !
     
  15. Pat Curran

    Pat Curran Administrator
    Staff Member

    Oct 20, 2012
    2,634
    17
    Co. Kilkenny, Ireland
    Thanks Francois,

    Yes, its getting there but needs a bit of work still on my part. Obviously, with perhaps hundreds of locations to mark up over time, the buttons on the left of the Map would become too cluttered. I am working on replacing them with cascading drop down lists which will take up much less space. This would also allow for an increase in the map window width.

    I forgot last night when I sent the email to Nicholas regarding the customizing of the cemetery icon. Obviously the proposed change cannot be used to mark German cemeteries!

    Does anyone have any ideas on how a German cemetery marker should look?

    A sensitive issue which requires careful thought...

    Regards,

    Pat
     
  16. Francois Dumas

    Francois Dumas Administrator
    Staff Member

    May 18, 2013
    129
    0
    Male
    publisher (semi)retired
    Italy
    How about a little German helmet displayed on it, over three crosses?

    Oh, would it be possible to change the color of the text or background, when clicking on the icon on the map? I have great difficulty reading the black font in the red background. But maybe that is just me?
     
  17. Pat Curran

    Pat Curran Administrator
    Staff Member

    Oct 20, 2012
    2,634
    17
    Co. Kilkenny, Ireland
    Hi Francois,

    The official German War Graves Commission logo is this design:

    [​IMG]

    ...so perhaps the existing demo icon at Beny sur Mer will suffice with perhaps a 'G' added for 'German'?

    I would be anxious to have both the Jewish and Christian symbols on the Allied icon with perhaps an 'A' added for 'Allied'. I also feel that the German helmet might be a bit too militaristic for a cemetery icon.

    Another option might be to use the design at the top of the mound at La Cambe...

    [​IMG]

    ...but I am not sure if the outline would still be recognizable when it is down-sized.

    Mmm...needs more thought I think.

    The red background colour of the 'infobox' can be changed as can the colour of the text therein. I'll play around with it now that the Map is fully implemented on the Forum. Let me have your suggestions for both colours ;)

    Regards,

    Pat
     
  18. patelie

    patelie Active Member
    Researcher

    Pat
    To replace the buttons you can use the same box like the one on top right on this page
    http://www.6juin1944.com/espace/aerial/gps.php
     
  19. Francois Dumas

    Francois Dumas Administrator
    Staff Member

    May 18, 2013
    129
    0
    Male
    publisher (semi)retired
    Italy
    As a former typographer I can tell you that blue characters on white background is most soothing to the human eye. But not necessarily the nicest for the site ;-) Maybe try the colour (red, blue, green) but with white characters on it?

    The cross on the mound might indeed become too small to recognize. The crosses in the foreground could work though? Maybe just one with the A or G at the top corner?
     
  20. Pat Curran

    Pat Curran Administrator
    Staff Member

    Oct 20, 2012
    2,634
    17
    Co. Kilkenny, Ireland
    Thanks Patrick; that's exactly what I need to implement - a long list of sub-divided locations in one (or maybe two) drop down lists.

    I might come back to you for a hand with the coding if that's OK? I have about three JavaScript books open on my desk as I type this :D

    Regards,

    Pat
     

Share This Page