Google Directions Tweet |
|
|
Categories:
Region Plugin
Two items are required for this particular plugin which correspond with the starting and ending locations in the plugin definition. Plug in attributes also include: starting center location and zoom, along with assigning the height and width of the map. The javascript function calcRoute() activates the directions. The referenced demo activates the directions with an onChange="javascript:calcRoute();" in the HTML Form element Attributes from within the items. Keywords
Google Map, Google Directions, Google API |
Company:
Date added: 16.8.2010
Views:
2327
Votes:
4
Reviews:
5
Min. APEX Version:
4.0
Link to:
If something is not correct please report it here:
Report Listing
|
|
Do you have a question about this Plugin? Want to write a Review or Comment?
Login first. Reviews / Questions / Comments are e-mailed to the author of the Plug-in. |
:)
Instead of onChange, I have called the javascript function via a "Execute Javascript Code" dynamic action with javascript:calcRoute(); as the code and with the "Fire On Page Load" checked.
But of course I set the starting and ending location items via a branch before rendering the page with the plugin.
If you have an example of your page on apex.oracle.com, I can take a look.
Thanks for a great plug in. I have followed your instructions as well as those in the other posts but am unable to show the directions portion of the page. When I move the javascript to page level and invoke this with the onload I just get a blank map region. Do you have any pointers?
Under the plugin region definition the starting item is P1_START and ending region is P1_END (height 400, width 700)
Both P1_START and P1_END have onChange="javascript:calcRoute();" listed under HTML Form Element Attributes in their definitions.
Each select list is using static locations but these items can be substituted with text items. You would then need a button or something to call the specific javascript function calcRoute().
I have also used a basic input form with a submit button with a branch to a new page (parsing over the starting and ending locations into hidden items) and called the javascript function onload.
| Powered by Sigsiu.NET | ![]() |


Google Directions
Save This Page
