Page 1 of 1

Google Maps help please

Posted: 26 January 12 7:47 am
by belken
Hopefully some software guru can help me with Google Maps.

I am currently plotting data in Google earth Pro. Groups of data are separated by different coloured icons.

Not all recipients of the data have the Google Earth Pro I am trying to convert the data down to Google maps.

I am currently creating a KML file but when I load it into Google maps its losing the separate group colour.

Each Group is school and each plot is a student making about 24 groups with about 800 plots I want to be able to turn on and off each group on the map.

I notice in GCA we are able to turn of finds, proximity and owned caches so I can only assume what I am Looking for can be done.

Can anyone point me in the right direction.
[-o<
Belinda :-k

Re: Google Maps help please

Posted: 30 January 12 1:31 pm
by mtrax
I'm not exactly sure but I think I saw a tool which converted a CSV file or a list of locations to a Google map, but the GCA map has a bit of coding both on the server side and some code on the webpage to achieve this , ie not a turn-key solution.
I think this was the site: http://batchgeo.com/

Re: Google Maps help please

Posted: 30 January 12 1:53 pm
by Laighside Legends
belken wrote: I am currently creating a KML file but when I load it into Google maps its losing the separate group colour.
You can load KML files into google maps??? :shock:

Re: Google Maps help please

Posted: 30 January 12 2:02 pm
by belken
At the moment I'm using Google Earth Pro to upload csv files with addresses. I then have them sorted in Google Earth Pro using different coloured icons. However, the problem I face is this: I am saving as a KML file, which is working fine in Google Earth, however when I upload this in Google Maps, I am loosing the coloured icons - they all appear as one colour ?????

I'm guessing I will have to learn some coding to do this, but have not done that before so I don't know where to put it etc...

Re: Google Maps help please

Posted: 30 January 12 2:03 pm
by CraigRat
We directly manipulate CSS in Javascript to turn stuff on and off, there no real nice easy way to do it I'm afraid.

Google Maps support of KML does not always bring over the same icons and styles, as the colouring of the icons is actually a Google Earth feature. You cant within google maps specify and icon AND a color, we have to use different icon styles for each colour pin we use.

Re: Google Maps help please

Posted: 30 January 12 2:08 pm
by caughtatwork
As far as I can tell, you need to have a "style" for each coloured pin. The each "item" gets assigned the "style" for the pin colour to show.

e.g.

Code: Select all

  <Style id="style35">
    <IconStyle>
      <Icon>
        <href>http://geocaching.com.au/pics/logo_gca_15.png</href>
      </Icon>
    </IconStyle>
  </Style>
That's a style definition to show the small GCA logo as the "pin".

Code: Select all

  <Placemark>
    <name>Corrigin WA</name>
    <LookAt>
      <longitude>117.875206</longitude>
      <latitude>-32.330795</latitude>
      <range>19673.277344</range>
    </LookAt>
    <styleUrl>#style35</styleUrl>
    <address>Corrigin WA</address>
    <Point>
      <coordinates>117.875206,-32.330795,0.000000</coordinates>
    </Point>
  </Placemark>
That's the location with the style which will show the GCA logo.

If you have 5 different pins, set 5 styles.
Then for each location, set the applicable style.

Re: Google Maps help please

Posted: 30 January 12 4:54 pm
by belken
Thankyou! I think that puts me on the right path :) I will put it into practice tomorrow.

Re: Google Maps help please

Posted: 30 January 12 5:50 pm
by caughtatwork
This is the KML file (I hope) for the ICEM (I've cached everywhere man) map.

http://maps.google.com.au/maps/ms?authu ... f2fa615558

If you save that, it might help with what goes where.
I think the icons you use need to be on the internet, so I don't think you can load them from your local PC.