emnadridi / gmaps4jsf

Automatically exported from code.google.com/p/gmaps4jsf
0 stars 0 forks source link

Directions API support #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently there's no way to show the route between two points in a map
(http://code.google.com/intl/en/apis/maps/documentation/services.html#LoadingDir
ections).
Ideally I'd like to see a <m:direction /> tag that supports either
coordinates or two markers as origin and target. This two targets could be
referenced by id or be nested tags. Of course, options to see the route or
email it are a plus. The street view panorama would be at the top of the
wish list. For example:

case 0:
<m:map>
   <m:direction origin="-40.11,-3.018" target="-40.11,-3.018"
travel="G_TRAVEL_MODE_WALKING" />
</m:map>

case 1:
<m:map>
   <m.marker id="origin" latitude="" longitude="" />
   <m.marker id="target" latitude="" longitude="" />
   <m:direction origin="origin" target="target" />
</m:map>

case 2:
<m:map>
   <m:direction>
        <m.marker id="origin" latitude="" longitude="" />
        <m.marker id="target" latitude="" longitude="" />
   </m:direction>
</m:map>

case 3:
<m:direction locale="es" steps="true" line="false" />

Original issue reported on code.google.com by jose.noh...@gmail.com on 5 Jun 2009 at 6:53

GoogleCodeExporter commented 9 years ago
Yeah. This is a great feature. It would be just wonderful if you could 
implement it.
Looking forward for this issue is done.

Original comment by ioanb...@gmail.com on 23 Aug 2009 at 4:41

GoogleCodeExporter commented 9 years ago
Issue 71 has been merged into this issue.

Original comment by Hazem.sa...@gmail.com on 17 Sep 2009 at 12:51

GoogleCodeExporter commented 9 years ago
why i still can't use this code there is still some bugs
org.apache.jasper.JasperException: /welcomeJSF.jsp(27,16) PWC6142: No tag 
"direction"
defined in tag library imported with prefiks like this

Original comment by dita...@gmail.com on 15 Nov 2009 at 4:42

GoogleCodeExporter commented 9 years ago
@ditadsp:

This feature is not implemented yet.

Original comment by Hazem.sa...@gmail.com on 18 Dec 2009 at 1:37

GoogleCodeExporter commented 9 years ago
@Hazem.saleh, 

   Could you please show some simple code example of that workaround you
mentioned, using jsVariable? I'm trying to use GMaps4JSF and show a route.

Thanks in advance.

Original comment by davi...@gmail.com on 5 May 2010 at 6:56

GoogleCodeExporter commented 9 years ago

Original comment by Hazem.sa...@gmail.com on 6 May 2010 at 7:18

GoogleCodeExporter commented 9 years ago
Done in 1.1.4 snapshot (and will apply the patch later to the 1.1.3 tag as 
well).

Original comment by Hazem.sa...@gmail.com on 8 May 2010 at 1:13

GoogleCodeExporter commented 9 years ago
Done, and this is the feature preview:
http://www.mashups4jsf.com/gmaps4jsf-examples-1.1.4-SNAPSHOT/pages/direction1.js
f

An example of the component is:
<m:map id="map" width="70%" height="480px" latitude="42.351505"
longitude="-71.094455" zoom="15"/>

<m:direction for="map" 
             fromAddress="500 Memorial Drive, Cambridge, MA" 
             toAddress="4 Yawkey Way, Boston, MA 02215 (Fenway Park)" 
             style="width: 50%; height:480px;"
             travelMode="G_TRAVEL_MODE_WALKING" />

Original comment by Hazem.sa...@gmail.com on 8 May 2010 at 1:18

Attachments:

GoogleCodeExporter commented 9 years ago
The direction component is now included is 1.1.3-u3, 
You can download the jar from:
http://gmaps4jsf.googlecode.com/files/gmaps4jsf-1.1.3-u3.jar

Or using Maven2:
        <dependency>
            <groupId>com.googlecode.gmaps4jsf</groupId>
            <artifactId>gmaps4jsf-core</artifactId>
            <version>1.1.3-u3</version>
        </dependency>       

Original comment by Hazem.sa...@gmail.com on 8 May 2010 at 4:51