inputEx-library

inputEx  0.7.1

inputEx-library > inputEx > inputEx.MapField
Search:
 
Filters

Class inputEx.MapField - extends inputEx.Field

Wrapper for Mapping APIs, including Google Maps, Yahoo Maps and Virtual Earth

Constructor

inputEx.MapField ( options )
Parameters:
options <Object> Added options:
  • width
  • height
  • loading
  • lat
  • lon
  • uzoom
  • api: google, yahoo or virtualearth (default)
  • api_key

Properties inherited from inputEx.Field:

Methods

getValue

void getValue ( )
return the same structure as setValue

preload

void preload ( )
This preloaded MAY not really work -- we recommend that you use the following JavaScript instead _after_ "yahoo-dom-event.js" (or similar) is included: script type="text/javascript" YMAPPID = [yourapikey] /script script type="text/javascript" src="http://us.js2.yimg.com/us.js.yimg.com/lib/map/js/api/ymapapi_3_8_0_7.js" /script Note the non-standard loading pattern! See: http://yuiblog.com/blog/2006/12/14/maps-plus-yui/

renderComponent

void renderComponent ( )
Render the field using the appropriate mapping function

setOptions

void setOptions ( )
Adds the 'inputEx-MapField' default className

setValue

void setValue ( )
set the value: {lat: 45.23234, lon: 2.34456, uzoom: 6, nzoom: 6}

wait_create

void wait_create ( )
This will wait until the DOM element appears before completion of map rendering

Events inherited from inputEx.Field:


Copyright © 2011 Eric Abouaf All rights reserved.