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