00001 <?php
00002
00020 if ( !defined( 'MEDIAWIKI' ) ) {
00021 die( 'Not an entry point.' );
00022 }
00023
00024 $wgResourceModules['ext.sm.fi.yahoomaps'] = array(
00025 'dependencies' => array( 'ext.maps.yahoomaps', 'ext.sm.forminputs' ),
00026 'localBasePath' => dirname( __FILE__ ),
00027 'remoteBasePath' => $smgScriptPath . '/includes/services/YahooMaps',
00028 'group' => 'ext.semanticmaps',
00029 'scripts' => array(
00030 'jquery.yahoomapsinput.js',
00031 'ext.sm.yahoomaps.js'
00032 ),
00033 );
00034
00035 $wgHooks['MappingServiceLoad'][] = 'smfInitYahooMaps';
00036
00037 function smfInitYahooMaps() {
00038 global $wgAutoloadClasses;
00039
00040 $wgAutoloadClasses['SMYahooMapsQP'] = dirname( __FILE__ ) . '/SM_YahooMapsQP.php';
00041
00042
00043 if ( defined( 'SF_VERSION' ) ) $wgAutoloadClasses['SMYahooMapsFormInput'] = dirname( __FILE__ ) . '/SM_YahooMapsFormInput.php';
00044
00045 MapsMappingServices::registerServiceFeature( 'yahoomaps', 'qp', 'SMMapPrinter' );
00046 MapsMappingServices::registerServiceFeature( 'yahoomaps', 'fi', 'SMYahooMapsFormInput' );
00047
00048 return true;
00049 }