geoXML shows only one placemarker icon of the same kind.

116 views
Skip to first unread message

Tord Nilsen

unread,
Feb 11, 2012, 1:07:31 PM2/11/12
to google-map...@googlegroups.com
Hi.
I have a site using geoXML parser and a kml-file generated by Google Earth. 
But the layer only shows one placemarker of same icon. 
I will try to explain:
I create four placemarkers in Google Earth, A,B,C,D. A and B has the same icon, and C and D has another, but same icon.
When shown in my site, only either A or B is shown, and either C or D. If I delete the placemarker that shows, the other placemarker become visible.
Or if I change iconstyle of the disapare placemarker it becomes visible.
Anyone have any suggestion/explanation??

Regard

Tord Nilsen

unread,
Feb 11, 2012, 2:17:24 PM2/11/12
to google-map...@googlegroups.com
Update: It seems like I can have more than one Pushpin icon in the map. But no other icon shows more than one.

geoco...@gmail.com

unread,
Feb 11, 2012, 3:07:41 PM2/11/12
to Google Maps JavaScript API v3
My suggestion is to read and follow the posting guidelines (provide a
link to a map that exhibits the problem and/or your kml).

I have lots of examples using geoxml3 that display multiple markers.
Here is one:

http://www.geocodezip.com/geoxml3_test/v3_geoxml3_markers_test.html

-- Larry


>
> Regard

Tord Nilsen

unread,
Feb 11, 2012, 4:26:53 PM2/11/12
to google-map...@googlegroups.com
Sorry.

There should be four placemarkes there according to the kml file.


The problem is multiple markers of any other type than pushpin.

Regards 
Tord

Tord Nilsen

unread,
Feb 11, 2012, 5:01:29 PM2/11/12
to google-map...@googlegroups.com
Isn't there a edit option for my own post??

geoco...@gmail.com

unread,
Feb 11, 2012, 5:09:59 PM2/11/12
to Google Maps JavaScript API v3
On Feb 11, 1:26 pm, Tord Nilsen <tord.nil...@gmail.com> wrote:
> Sorry.
> The map is here:http://www.granvik.no/test/test.html
> The KML file is here:http://www.granvik.no/test/test.kml<http://www.granvik.no/kart/Mine%20steder.kml>
>
> The code is just a copy ofhttp://www.geocodezip.com/geoxml3_test/v3_geoxml3_markers_test.html
> There should be four placemarkes there according to the kml file.
>
> The problem is multiple markers of any other type than pushpin.

Seems to be the scaling problem on icons in the latest/nightly version
of the API (this page calls out v3.6):
http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB_36.html?filename=http://www.geocodezip.com/xmlProxy.asp?http://www.granvik.no/test/test.kml

-- Larry



>
> Regards
> Tord

geoco...@gmail.com

unread,
Feb 11, 2012, 5:10:58 PM2/11/12
to Google Maps JavaScript API v3
On Feb 11, 2:01 pm, Tord Nilsen <tord.nil...@gmail.com> wrote:
> Isn't there a edit option for my own post??

You can delete it, I don't think you can edit it once it is posted.

-- Larry

geoco...@gmail.com

unread,
Feb 11, 2012, 5:15:19 PM2/11/12
to Google Maps JavaScript API v3
On Feb 11, 2:09 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
> On Feb 11, 1:26 pm, Tord Nilsen <tord.nil...@gmail.com> wrote:
>
> > Sorry.
> > The map is here:http://www.granvik.no/test/test.html
> > The KML file is here:http://www.granvik.no/test/test.kml<http://www.granvik.no/kart/Mine%20steder.kml>
>
> > The code is just a copy ofhttp://www.geocodezip.com/geoxml3_test/v3_geoxml3_markers_test.html
> > There should be four placemarkes there according to the kml file.
>
> > The problem is multiple markers of any other type than pushpin.
>
> Seems to be the scaling problem on icons in the latest/nightly version
> of the API (this page calls out v3.6):http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB_36...

And as you have the stylemap tag used, you can implement support for
that:
http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_stylemap_marker_36.html?filename=http://www.geocodezip.com/xmlProxy.asp?http://www.granvik.no/test/test.kml

  -- Larry


>
>
>
>
>
>
>
> > Regards
> > Tord

geoco...@gmail.com

unread,
Feb 11, 2012, 5:19:52 PM2/11/12
to Google Maps JavaScript API v3
On Feb 11, 2:15 pm, "geocode...@gmail.com" <geocode...@gmail.com>
wrote:
> On Feb 11, 2:09 pm, "geocode...@gmail.com" <geocode...@gmail.com>
> wrote:
>
> > On Feb 11, 1:26 pm, Tord Nilsen <tord.nil...@gmail.com> wrote:
>
> > > Sorry.
> > > The map is here:http://www.granvik.no/test/test.html
> > > The KML file is here:http://www.granvik.no/test/test.kml<http://www.granvik.no/kart/Mine%20steder.kml>
>
> > > The code is just a copy ofhttp://www.geocodezip.com/geoxml3_test/v3_geoxml3_markers_test.html
> > > There should be four placemarkes there according to the kml file.
>
> > > The problem is multiple markers of any other type than pushpin.
>
> > Seems to be the scaling problem on icons in the latest/nightly version
> > of the API

Link to the issue:
http://code.google.com/p/gmaps-api-issues/issues/detail?id=3908
Star it to encourage them to fix it...

-- Larry

> (this page calls out v3.6):http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_linktoB_36...
>
> And as you have the stylemap tag used, you can implement support for
> that:http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_stylemap_ma...
>
>    -- Larry
>
>
>
>
>
>
>
>
>
> > > Regards
> > > Tord

Tord Nilsen

unread,
Feb 11, 2012, 5:41:00 PM2/11/12
to google-map...@googlegroups.com
Thanks Larry.
I'm not sure I understand what you mean by

I am quit new to javascript and gmap so I hope it will be fixed in feature version :)

geoco...@gmail.com

unread,
Feb 11, 2012, 5:47:54 PM2/11/12
to Google Maps JavaScript API v3
On Feb 11, 2:41 pm, Tord Nilsen <tord.nil...@gmail.com> wrote:
> Thanks Larry.
> I'm not sure I understand what you mean by
> -"And as you have the stylemap tag used, you can implement support for

KML has a <StyleMap> tag that allows you to defined dynamic behavior
for markers (on mouseover). If you want that behavior, the hooks for
it are supported in geoxml3, but it requires additional code to
implement, as demonstrated in the link I provided.

> that:http://www.geocodezip.com/geoxml3_test/v3_geoxml3_kmltest_stylemap_ma...
>  "
>
> I am quit new to javascript and gmap so I hope it will be fixed in feature
> version :)

The problem you are having is that your page is using the "nightly"
build of the v3 maps api and in that version, marker scaling is
broken, which is why you are only seeing 3 markers, rather than 4. If
you call out version 3.6 (the "feature stable" version), it works.

http://code.google.com/apis/maps/documentation/javascript/basics.html#Versioning

-- Larry

Tord Nilsen

unread,
Feb 11, 2012, 6:29:31 PM2/11/12
to google-map...@googlegroups.com
Ok, then I understand. I don't think I need differently behavior at this time. But you never know. Thanks for pointing that opportunity for me.
I have change my script so now I use the 3.6 version. 
The map is here http://www.granvik.no/kart/kart.htm , in norwegian, so you would probably not understand a word of what it saying. It's a google map, a layer from the norwegian mapping services, panoramio and a kml/ geoxml layer. The kml/geoxml is used for placemarkers and gpstracks. 
For now everything works as I want it to.

Thanks again.

Reply all
Reply to author
Forward
0 new messages