Google Maps help please

Discussion about software such as GSAK, OziExplorer etc, as well as all things hardware, GPSrs, laptops, PDAs, paperless caching, cables etc
Post Reply
belken
Posts: 447
Joined: 15 January 05 12:31 am
Location: melville

Google Maps help please

Post by belken » 26 January 12 7:47 am

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

User avatar
mtrax
Posts: 1974
Joined: 19 December 06 9:57 am
Location: Weston Creek, Canberra

Re: Google Maps help please

Post by mtrax » 30 January 12 1:31 pm

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/

Laighside Legends
10000 or more caches found
10000 or more caches found
Posts: 1304
Joined: 05 October 10 10:20 pm
Location: Australia

Re: Google Maps help please

Post by Laighside Legends » 30 January 12 1:53 pm

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:

belken
Posts: 447
Joined: 15 January 05 12:31 am
Location: melville

Re: Google Maps help please

Post by belken » 30 January 12 2:02 pm

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...

User avatar
CraigRat
850 or more found!!!
850 or more found!!!
Posts: 7015
Joined: 23 August 04 3:17 pm
Twitter: CraigRat
Facebook: http://facebook.com/CraigRat
Location: Launceston, TAS
Contact:

Re: Google Maps help please

Post by CraigRat » 30 January 12 2:03 pm

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.

User avatar
caughtatwork
Posts: 17015
Joined: 17 May 04 12:11 pm
Location: Melbourne
Contact:

Re: Google Maps help please

Post by caughtatwork » 30 January 12 2:08 pm

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.

belken
Posts: 447
Joined: 15 January 05 12:31 am
Location: melville

Re: Google Maps help please

Post by belken » 30 January 12 4:54 pm

Thankyou! I think that puts me on the right path :) I will put it into practice tomorrow.

User avatar
caughtatwork
Posts: 17015
Joined: 17 May 04 12:11 pm
Location: Melbourne
Contact:

Re: Google Maps help please

Post by caughtatwork » 30 January 12 5:50 pm

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.

Post Reply