/**
  * Returns a list of all config variables that should be passed to the JS.
  * 
  * @since 1.0.1
  * 
  * @return array
  */
 public final function getConfigVariables()
 {
     return parent::getConfigVariables() + array('egGoogleJsApiKey' => $GLOBALS['egGoogleJsApiKey']);
 }
 /**
  * @see MapsMappingService::getResourceModules
  * 
  * @since 0.7.3
  * 
  * @return array of string
  */
 public function getResourceModules()
 {
     return array_merge(parent::getResourceModules(), array('ext.maps.openlayers'));
 }
Пример #3
0
 /**
  * @see MapsMappingService::getResourceModules
  *
  * @since 3.0
  *
  * @return array of string
  */
 public function getResourceModules()
 {
     return array_merge(parent::getResourceModules(), array('ext.maps.leaflet'));
 }
Пример #4
0
 /**
  * Returns a list of all config variables that should be passed to the JS.
  *
  * @since 1.0.1
  *
  * @return array
  */
 public function getConfigVariables()
 {
     return array_merge(parent::getConfigVariables(), array('egMapsScriptPath' => $GLOBALS['wgScriptPath'] . '/extensions/Maps/'));
 }
Пример #5
0
 /**
  * Constructor.
  * 
  * @since 0.6.6
  */
 function __construct($serviceName)
 {
     parent::__construct($serviceName, array('openstreetmap'));
 }
Пример #6
0
 /**
  * @see MapsMappingService::getResourceModules
  * 
  * @since 1.0
  * 
  * @return array of string
  */
 public function getResourceModules()
 {
     return array_merge(parent::getResourceModules(), array('ext.maps.googlemaps3'));
 }
Пример #7
0
 /**
  * Returns a list of all config variables that should be passed to the JS.
  *
  * @since 1.0.1
  *
  * @return array
  */
 public function getConfigVariables()
 {
     return array_merge(parent::getConfigVariables(), array('egMapsScriptPath' => $GLOBALS['egMapsScriptPath']));
 }