Skip to content

Instantly share code, notes, and snippets.

@spencercarnage
Created April 7, 2015 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spencercarnage/68347e328aee8771be56 to your computer and use it in GitHub Desktop.
Save spencercarnage/68347e328aee8771be56 to your computer and use it in GitHub Desktop.
refactoring the atlas component to use a better directory structure
component/
├── atlas.module.js
├── atlas.provider.js
├── atlas.provider_spec.js
├── circle.directive_spec.js
├── circle.directive.spec.js
├── connection
├── connection.directive.js
├── connection.directive_spec.js
├── connection.controller.js
└── connection.controller_spec.js
├── controls
├── controls.controller.js
├── controls.controller_spec.js
├── controls.directive.js
├── controls.directive_spec.js
├── controlsZoom.directive.js
└── controlsZoom.directive_spec.js
├── lazyLoadScript.directive.js
├── lazyLoadScript.directive_spec.js
├── map
├── map.controller.js
├── map.controller_spec.js
├── map.directive.js
├── map.directive_spec.js
├── bounds.directive.js
├── bounds.directive_spec.js
├── onload.directive.js
├── onload.directive_spec.js
├── typeId.directive.js
└── typeId.directive_spec.js
├── marker
├── clusterer
├── click.directive.js
├── click.directive_spec.js
├── cluster.controller.js
├── cluster.controller_spec.js
├── cluster.directive.js
├── cluster.directive_spec.js
├── cluster.service.js
├── cluster.service_spec.js
├── model.factory.js
├── model.factory_spec.js
├── mouseout.directive.js
├── mouseout.directive_spec.js
├── mouseover.directive.js
├── mouseover.directive_spec.js
├── overlayHover.directive.js
└── overlayHover.directive_spec.js
├── drag
├── dragend.directive.js
├── dragend.directive_spec.js
├── draggable.directive.js
├── draggable.directive_spec.js
├── dragstart.directive.js
└── dragstart.directive_spec.js
├── icon.directive.js
├── icon.directive_spec.js
├── latlng.directive.js
├── latlng.directive_spec.js
├── manager
├── manager.controller.js
├── manager.controller_spec.js
├── manager.directive.js
├── manager.directive_spec.js
├── manager.service.js
└── manager.service_spec.js
├── marker.controller.js
├── marker.controller_spec.js
├── marker.directive.js
├── marker.directive_spec.js
├── model.directive.js
├── model.directive_spec.js
├── overlay
├── overlay.directive.js
├── overlay.directive_spec.js
├── click.directive.js
├── click.directive_spec.js
├── hover.directive.js
├── hover.directive_spec.js
├── mixin.service.js
└── mixin.service_spec.js
├── setLatLng.directive.js
└── setLatLng.directive_spec.js
├── searchBox
├── searchBox.controller.js
├── searchBox.controller_spec.js
├── searchBox.directive.js
└── searchBox.directive_spec.js
├── tooltip.directive.js
├── tooltip.directive_spec.js
└── utils
├──
├── promiseManager.service.js
├── promiseManager.service_spec.js
├── tooltip.factory.js
├── tooltip.factory_spec.js
├── utils.module.js
└── // split up services/mapUtils.js and lib/helpers.js
src/scripts/
├── controllers
│   ├── ConnectionController.js
│   ├── ControlsController.js
│   ├── MapController.js
│   ├── MarkerClustererController.js
│   ├── MarkerController.js
│   ├── MarkerManagerController.js
│   └── SearchBoxController.js
├── directives
│   ├── circle.js
│   ├── connection.js
│   ├── controls.js
│   ├── controlsZoom.js
│   ├── lazyLoadScript.js
│   ├── map.js
│   ├── mapBounds.js
│   ├── mapObjectOverlay.js
│   ├── mapOnLoad.js
│   ├── mapTypeId.js
│   ├── marker.js
│   ├── markerClick.js
│   ├── markerClusterer.js
│   ├── markerClustererClick.js
│   ├── markerClustererMouseout.js
│   ├── markerClustererMouseover.js
│   ├── markerClustererOverlayHover.js
│   ├── markerDragend.js
│   ├── markerDraggable.js
│   ├── markerDragstart.js
│   ├── markerIcon.js
│   ├── markerLatlng.js
│   ├── markerManager.js
│   ├── markerModel.js
│   ├── markerMouseout.js
│   ├── markerMouseover.js
│   ├── markerOverlay.js
│   ├── markerOverlayClick.js
│   ├── markerOverlayHover.js
│   ├── markerSetLatlng.js
│   ├── overlay.js
│   ├── repeat.js
│   ├── searchBox.js
│   └── tooltip.js
├── lib
│   └── helpers.js
├── main.js
├── providers
│   └── atlas.js
├── services
│   ├── TrueMouseout.js
│   ├── atlasOverlayViewMixin.js
│   ├── googleMaps.js
│   ├── mapUtils.js
│   ├── markerClusterer.js
│   ├── markerManager.js
│   ├── models
│   │   └── AtlasMarkerClusterer.js
│   ├── overlays.js
│   ├── promiseManager.js
│   └── tooltipFactory.js
├── templates.js
└── vendor.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment