You are here

function angularjs_map_map in AngularJS 7

1 string reference to 'angularjs_map_map'
angularjs_map_menu in modules/angularjs_map/angularjs_map.module

File

modules/angularjs_map/angularjs_map.module, line 37

Code

function angularjs_map_map() {
  angularjs_init_application('earthquakeMap');
  drupal_add_js(libraries_get_path('leaflet') . '/dist/leaflet-src.js');
  drupal_add_css(libraries_get_path('leaflet') . '/dist/leaflet.css');
  drupal_add_js(drupal_get_path('module', 'angularjs_map') . '/js/leaflet-google.js');
  drupal_add_js(libraries_get_path('Leaflet.markercluster') . '/dist/leaflet.markercluster.js');
  drupal_add_css(libraries_get_path('Leaflet.markercluster') . '/dist/MarkerCluster.css');
  drupal_add_css(libraries_get_path('Leaflet.markercluster') . '/dist/MarkerCluster.Default.css');
  drupal_add_css(libraries_get_path('bootstrap') . '/css/bootstrap.min.css');
  drupal_add_css(libraries_get_path('bootstrap') . '/css/bootstrap-responsive.min.css');
  drupal_add_js(libraries_get_path('bootstrap') . '/js/bootstrap.min.js');
  drupal_add_js(drupal_get_path('module', 'angularjs_map') . '/js/app.js');
  drupal_add_css(drupal_get_path('module', 'angularjs_map') . '/angular_map.css');
  angularjs_add_partial('partials/map.html', theme('angular_js_map_map', array(
    'width' => '100%',
    'height' => '600px',
    'zoom' => 2,
  )));
  return theme('angularjs_map_app');
}