Problem With new version of api

29 views
Skip to first unread message

Stuk

unread,
Oct 2, 2009, 10:32:03 AM10/2/09
to KML Developer Support - Google Earth Plug-in
I have a placemark like this...

<Placemark id ="12987">
<name>1 - TEST</name>
<description>
<![CDATA[<ul><span style="font-size:10;"">
<li>lic.:1</li>
<li>rif.:1</li>
<li>tel:<a href="skype:echo123?call">1</a></li>
<li>vend:1</li>
<li>stato:1</li>
</span>
</ul>
111111111111111<br>
111111111111111<br>
<a href="http://url.com"><img src="http://urlimages.png"></img></a>
<!-- XXX --!>
]]>

</description>
<styleUrl>#60</styleUrl>
<Point>
<coordinates>12,12</coordinates>
</Point>
</Placemark>


After new version of api, if i click on the image, new windows open
and i see the link. In the new version when i click on the image, the
image in the baloon move down and the click not open any windows!
Why at the click image scroll down?
How can i resolve this?
Thank you...bye

fraser (Earth API Guru)

unread,
Oct 2, 2009, 12:00:25 PM10/2/09
to KML Developer Support - Google Earth Plug-in
Hi,

I have not tested this but you could try and target a new window in
the link.

Something like...
-------------------------------------------------------------
<a target='_blank' href="http://url.com"><img src="http://
urlimages.png"></img></a>
-------------------------------------------------------------

Hope that helps!

F.

Stuk

unread,
Oct 5, 2009, 2:47:28 AM10/5/09
to KML Developer Support - Google Earth Plug-in
No, nothing change...Can you try this?
Thank you.

Stuk

unread,
Oct 5, 2009, 2:57:12 AM10/5/09
to KML Developer Support - Google Earth Plug-in
Try this example :

http://code.google.com/apis/ajax/playground/?exp=earth#html_string_balloons

and change the code in the function balloon.setContentString() with

// Google logo.
balloon.setContentString( '<a target="_black" href="http://
www.google.com"><img src="http://www.google.com/intl/en_ALL/images/
logo.gif"></a><br>'
+ '<font size=20>Earth Plugin</font><br><font size=-2>sample info '
+ 'window</font>');

Click the image, this image is big...so click start 95%, but if you
look, when you click the image move down and you can see a vertical
scrollbar in the balloons!

How can i solve this problem?

Stuk

unread,
Oct 6, 2009, 2:48:09 AM10/6/09
to KML Developer Support - Google Earth Plug-in
Solution?!?

On 2 Ott, 18:00, fraser (Earth API Guru) wrote:

Roman N

unread,
Oct 6, 2009, 2:02:27 PM10/6/09
to KML Developer Support - Google Earth Plug-in
I can't reproduce the problem-- can you post a link to a demo page
showing this behavior? Also which operating system and browser have
you tried this on?

Thanks,
Roman

Stuk

unread,
Oct 7, 2009, 3:10:57 AM10/7/09
to KML Developer Support - Google Earth Plug-in
I made this video, look it http://www.megafileupload.com/en/file/141758/DemoCode-rar.html.
I use Windows Xp Sp3, Firefox 3.5.3, And Last Api Plugin

Stuk

unread,
Oct 9, 2009, 5:42:32 AM10/9/09
to KML Developer Support - Google Earth Plug-in
So?

fraser (Earth API Guru)

unread,
Oct 12, 2009, 8:56:14 AM10/12/09
to KML Developer Support - Google Earth Plug-in
Hi,

Works fine for me..

You have a typo... target="_black" should be target="_blank"

F.

On Oct 5, 7:57 am, Stuk wrote:
> Try this example :
>
> http://code.google.com/apis/ajax/playground/?exp=earth#html_string_ba...
>
> and change the code in the function  balloon.setContentString() with
>
> // Google logo.
> balloon.setContentString( '<a target="_black" href="http://www.google.com"><img src="http://www.google.com/intl/en_ALL/images/

Stuk

unread,
Oct 13, 2009, 10:15:33 AM10/13/09
to KML Developer Support - Google Earth Plug-in
I Try On 5 different Pc and always get the error!!! Target is a
target, if you put _blank browser open the link in a new tab, if you
put anyother text browser open link in a tab called 'name of target'.
Please retry the same code. And click 20 time the link, sometimes link
open new tab correctly sometimes no! But the problem is the image is
move down! Look the video posted, you look the image have a scroll bar
when you click on the image. Try to press down and not realease you
always see the scroolbar near the image! In the old version of api no
problem have! No scrollbar near the image!!!
Please retry!
Thanks.

fraser (Earth API Guru)

unread,
Oct 16, 2009, 6:15:58 AM10/16/09
to KML Developer Support - Google Earth Plug-in
Hi,

See Roman's post...."- can you post a link to a demo page showing this
behavior?"

Also, in the Kml try specifying the height and width of the image in
the markup...
Something like....
-------------------------------------------------------------------------
<a target="_blank" href="http://url.com"><img width="100px"
height="200px" src="http://urlimages.png"></img></a>
------------------------------------------------------------------------

F,

Stuk

unread,
Oct 16, 2009, 9:03:34 AM10/16/09
to KML Developer Support - Google Earth Plug-in
I have JUST post a demo example and a video. Have you watch this?
Now i repost an example...

1)Go to this address...

http://code.google.com/apis/ajax/playground/?exp=earth#html_string_balloons

2)Change the code in the function balloon.setContentString() with
this (this is my real example),

// Google logo.
balloon.setContentString('<h3>Test</h3><ul><span>'
+'<li>test.:12</li><li>test.:12</li><li>test:12</li><li>stest:12</
li></span></ul>asd asd asd<br>'
+'asdasd (asd)<br><a href="http://www.google.it"'
+'target="HOME"><img src="http://www.google.com/intl/en_ALL/images/
logo.gif" height="80px" width="80px"></a>');

3) Click run demo and click on a button SHOW HTML STRING BALLON
4) When you click on a google icon, you see image move down and
scrollbar compare near the imege.
This is a bug! How can i resolve this?
Thank you...

fraser (Earth API Guru)

unread,
Oct 17, 2009, 8:14:37 AM10/17/09
to KML Developer Support - Google Earth Plug-in
Hi,

Yes I watched the video...but rather than a video post a link to an
example page.

I have tried the code in your steps 2-4.
When I do the balloon is displayed without any scroll bars at all.
When I click the image nothing moves at all, a new page is loaded
showing google's search page.

Anyhow, try setting a minimum width and height of the balloons larger
than the maximum size of their content.

balloon.setMinWidth(300);
balloon.setMinHeight(300);
balloon.setContentString(...

F.

On Oct 16, 2:03 pm, Stuk wrote:
> I have JUST post a demo example and a video. Have you watch this?
> Now i repost an example...
>
> 1)Go to this address...
>
>    http://code.google.com/apis/ajax/playground/?exp=earth#html_string_ba...

Stuk

unread,
Oct 19, 2009, 2:57:06 AM10/19/09
to KML Developer Support - Google Earth Plug-in
It's incredible! I try setMin and setMax but nothing change. I have
Installed Plugin Version: 5.1.3509.4636, you try with this version of
api?
Thank's for your time...but i need resolve this problem!

fraser (Earth API Guru)

unread,
Oct 20, 2009, 6:47:33 AM10/20/09
to KML Developer Support - Google Earth Plug-in
Hi,

Again, without seeing your code then it is very hard to help.
If you would like me to help then post a link to the page that has the
issue.
Other than that it is impossible to know why it is not working...
My guess is that you have some CSS somewhere that is altering the
balloons.

F.
> > > > > > > How can i solve this problem?- Masquer le texte des messages précédents -
>
> - Afficher le texte des messages précédents -

Stuk

unread,
Oct 21, 2009, 4:26:10 AM10/21/09
to KML Developer Support - Google Earth Plug-in
Ok, i post an example on http://teamextreme.altervista.org/testImageScroll.html
, click on the house, click on the link and view the scrollbar near
the image.
Thank for your help.

Stuk

unread,
Oct 23, 2009, 11:39:35 AM10/23/09
to KML Developer Support - Google Earth Plug-in
Please look example :)

On 21 Ott, 10:26, Stuk wrote:
> Ok, i post an example onhttp://teamextreme.altervista.org/testImageScroll.html

fraser (Earth API Guru)

unread,
Oct 29, 2009, 5:24:48 AM10/29/09
to KML Developer Support - Google Earth Plug-in
Hi,

The page just alerts "Bad Kml"

F.

Stuk

unread,
Nov 2, 2009, 2:58:01 AM11/2/09
to KML Developer Support - Google Earth Plug-in
oooh, just one month!!!! Incredible...the BUG is REAL! And ONLY
FIREFOX is affected.
This Example Work!

Stuk

unread,
Nov 11, 2009, 10:45:21 AM11/11/09
to KML Developer Support - Google Earth Plug-in
Can you look the example? I try on Internet Explorer and work, i think
is only a problem with firefox.
Thanks bye.

jmatthews

unread,
Nov 12, 2009, 10:34:50 PM11/12/09
to KML Developer Support - Google Earth Plug-in
I see the problem you describe. $5 says this is an issue as to the
difference between how FF and IE handle html tags. This is probably
the worst place to try to get html advice. Try codingforums.com

fraser (Earth API Guru)

unread,
Nov 13, 2009, 6:18:20 AM11/13/09
to KML Developer Support - Google Earth Plug-in
Stuck,

You have the following mark-up in the Kml file you load...
---------------------------------------------------------
<span style="width:1000px;height="500px";font-size:10pt;">
---------------------------------------------------------
Remove this as it is probably the cause of the issue...

F.

On Oct 7, 7:10 am, Stuk wrote:
> I made this video, look ithttp://www.megafileupload.com/en/file/141758/DemoCode-rar.html.

Stuk

unread,
Nov 16, 2009, 3:14:55 AM11/16/09
to KML Developer Support - Google Earth Plug-in
I try but not work. The problem is only in Firefox.

fraser (Earth API Guru)

unread,
Nov 26, 2009, 9:03:44 AM11/26/09
to KML Developer Support - Google Earth Plug-in
Sorry, you still have the same mark-up in the Kml file you load!

Stuk

unread,
Nov 27, 2009, 3:06:13 AM11/27/09
to KML Developer Support - Google Earth Plug-in
Sorry, i test in local, now i put on-line the kml without the
style="width:1000px;height="500px";font-size:10pt;
Please try, but the error is the same, for me only firefox is
affected.

Stuk

unread,
Nov 27, 2009, 10:35:31 AM11/27/09
to KML Developer Support - Google Earth Plug-in
Ok, i change the pop-up. Now work!, close this post.
Thanks bye.
Reply all
Reply to author
Forward
0 new messages