making the web work
 What is it?
 Products
 Services
 Features
 Home  Releases

 Company
 Contact

 Sites
 Applications

 QuickStart  Site Index
 4D developers
 ISPs
 Web devs
     
Tokens just added
List of tokens added recently

WebImpetus - “Tokens”

WebImpetus tokens are a great way to add dynamic functionality to any web site. For example site map which updates itself as soon as a new content is added. Or simply to place a Google Map of your company's location. This web page lists recently added tokens out of hundreds of tokens already available:

* GoogleMap - New token "<*--GoogleMap--*>" places a Google Map of a specified location whose latitude and longitude is provided. Address to latitude and longitude functionality will also be provided in the near future. Please note you must first initialise Google Map in the html head area for this to work for which use another token "<*--GoogleMapInit--*>", see the following examples.

* GoogleMapInit - Initliaze and prepares web page to display Google Map.

Example: <*--GoogleMapInit/key!Latitude!Longitude!ZoomFactor--*>

where Zoomfactor can be any number between 1 and 16. Larger the ZoomFactor closer the map will be (Zoomed in).

Using <*--GoogleMapInit/key!Latitude!Longitude!16--*> will display fully zoomed in map. Please also see GoogleMapLoadUnload below.

* GoogleMapLoadUnload - Loads Google Map on loading a web page. Also unloads the unnecessary space in the memory on unloading the web page.

Example: <body <*--GoogleMapLoadUnload--*>>

 

Putting this all together here is a real working example:

  1. Signup for a Google api key for using Google Maps service. Go to Google Signup page now .
  2. In the template/component/other page/document insert token <*--GoogleMapInit/key!Latitude!Longitude!ZoomFactor--*> in between the <head> and </head> tags.
  3. Call GoogleMapLoadUnload inside the body tag like <body <*--GoogleMapLoadUnload--*>>
  4. Call <*--GoogleMap--*> from the document or template where you want to place the Google Map.
And Google Map looks something like:

 



Note: You can also display more than one Google Maps on a web page. Click here to see this in action.
   
     
WebImpetus.com
© 2009
Tenthmatrix Information Systems Ltd.