Author: ochikvina
Date: 2009-07-30 07:22:59 -0400 (Thu, 30 Jul 2009)
New Revision: 15061
Modified:
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/gmap.xml
Log:
https://jira.jboss.org/jira/browse/RF-7615 - adding tip to the 'Details of usage'
section about performing the component updates;
Modified: branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/gmap.xml
===================================================================
---
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/gmap.xml 2009-07-30
10:19:50 UTC (rev 15060)
+++
branches/community/3.3.X/docs/userguide/en/src/main/docbook/included/gmap.xml 2009-07-30
11:22:59 UTC (rev 15061)
@@ -203,26 +203,34 @@
</mediaobject>
</figure>
<para>
- To set all these parameters and perform some activity (Zoom
+ To set the controls as well as to perform other activities (Zoom
In/Out etc.) is possible with your JavaScript, i.e. declare
- a name of an object on a
- <property>map</property>
- in the
+ a name of a <property>map</property> object in the
<emphasis>
<property>"gmapVar"</property>
</emphasis>
- attribute and then call the object directly with API
+ attribute and then call the object directly with
<emphasis>
- <property>Google Map</property>
- .
- </emphasis>
+ <property>Google Maps</property>
+ </emphasis> API.
</para>
+
<para>
- For example, to approximate a map for
- <code>gmapVar = "map"</code>
- declared inside the component, call <code>map.zoomIn()</code> on an
- event.
+ For instance, if you have <code>gmapVar = "map"</code>
declared for your component, to zoom in a map you should call
<code>map.zoomIn()</code> on an
+ event. See also an example of <emphasis role="bold">
+ <property><rich:gmap></property>
+ </emphasis> usage on the <ulink
url="http://livedemo.exadel.com/richfaces-demo/richfaces/gmap.jsf?c=...
Live Demo</ulink>.
</para>
+
+ <tip>
+ <title>Tip:</title>
+ <para>You do not need to use reRender to perform uptades for the <emphasis
role="bold">
+ <property><rich:gmap></property>
+ </emphasis> component. Use the <emphasis>
+ <property>"gmapVar"</property></emphasis>
attribute and
+ <ulink
url="http://code.google.com/intl/ru/apis/maps/documentation/referenc...
Maps native API</ulink> instead as it's described above.</para>
+ </tip>
+
<para>
Moreover, to add e.g. some JavaScript effects, events
defined on it are used.