0

gmap invalidate function

asked 2009-09-22 10:03:05 +0800

FlightPlan gravatar image FlightPlan
133 2

I m using the gmap's invalidate function but when i use the highest zoom level then the markers on gmap are disappears

use this example

<?root-attributes xmlns:v="urn:schemas-microsoft-com:vml"?><!-- For IE -->
<zk>
<!-- Replace "abcdefg" to proper Google Maps key per your host -->
<zscript><![CDATA[//@DECLARATION
public void calling()
{

System.out.println("invalidate calling");
mymap.invalidate();
System.out.println("invalidate called");
}

]]>
</zscript>

<script src="http://maps.google.com/maps?file=api&v=2.x&key=abcdefg"
type="text/javascript"></script>
<gmaps id="mymap" width="1400px" height="660px" showLargeCtrl="true"
showTypeCtrl="true" lat="18.51912660542399" lng="73.85640621185303" zoom="13" onMapZoom="calling()" style="Draggablecursor: crosshair!important" >
<gmarker id="mymark" lat="18.51912660542399" lng="73.85640621185303">
<attribute name="content">
Hello, <a href="http://www.zkoss.org">ZK</a> on top of Gmarker.
</attribute>
</gmarker>

</gmaps>

<vbox>
data: <label id="lbl" pre="true"/>
</vbox>
</zk>

go to highest zoom level and see the marker is disappears

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2009-09-25 01:06:31 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

updated 2009-09-25 01:06:54 +0800

Hi,FlightPlan
this is bug of the gmap
we define zoom scope is 17 but google is 19 now
ref: https://sourceforge.net/tracker/?func=detail&aid=2866238&group_id=152762&atid=785191

//jimmy

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-09-22 10:03:05 +0800

Seen: 190 times

Last updated: Sep 25 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More