All Projects → articodeltd → Angular Cesium

articodeltd / Angular Cesium

Licence: mit
JavaScript library for creating map based web apps using Cesium and Angular

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Angular Cesium

Angular Application Insights
Angular & Azure Application Insights module - Find out performance and usage of your app by connecting Microsoft Azure Application insights with your Angular application by @TrilonIO
Stars: ✭ 125 (-11.35%)
Mutual labels:  angular2
Paper Kit 2 Angular
Free Bootstrap 4 UI Kit for Angular 2+
Stars: ✭ 133 (-5.67%)
Mutual labels:  angular2
Ngx Config
Configuration utility for Angular
Stars: ✭ 135 (-4.26%)
Mutual labels:  angular2
Ionic2 Reddit Reader
Ionic 2 Sample App
Stars: ✭ 128 (-9.22%)
Mutual labels:  angular2
Fusebox Angular Universal Starter
Angular Universal seed project featuring Server-Side Rendering, @fuse-box bundling, material, firebase, Jest, Nightmare, and more
Stars: ✭ 132 (-6.38%)
Mutual labels:  angular2
Webapiclientgen
Strongly Typed Client API Generators generate strongly typed client APIs in C# .NET and in TypeScript for jQuery and Angular 2+ from ASP.NET Web API and .NET Core Web API
Stars: ✭ 134 (-4.96%)
Mutual labels:  angular2
Angular Feather
A-la-carte integration of Feather Icons in Angular applications
Stars: ✭ 123 (-12.77%)
Mutual labels:  angular2
Quantized Mesh
Specification for streaming massive terrain datasets for 3D visualization.
Stars: ✭ 139 (-1.42%)
Mutual labels:  cesium
Django Rest Angular2 Example
A simple example of a Django REST app + Angular2
Stars: ✭ 132 (-6.38%)
Mutual labels:  angular2
Ngx Date Fns
⏳ date-fns pipes for Angular 2.0 and above ⏳
Stars: ✭ 135 (-4.26%)
Mutual labels:  angular2
Ngx Validators
Validator library for Angular 2+
Stars: ✭ 128 (-9.22%)
Mutual labels:  angular2
Ngx Openlayers
Angular2+ components for Openlayers 4.x
Stars: ✭ 131 (-7.09%)
Mutual labels:  angular2
Ngx Joyride
Angular Joyride/Tour library
Stars: ✭ 135 (-4.26%)
Mutual labels:  angular2
Ng Gapi
ng-gapi a Google api module for Angular 6+
Stars: ✭ 126 (-10.64%)
Mutual labels:  angular2
Ng2 Search Filter
Angular 2 / Angular 4 / Angular 5 custom pipe npm module to make a search filter on any input, 🔥 100K+ downloads
Stars: ✭ 137 (-2.84%)
Mutual labels:  angular2
Ngx Mydatepicker
Angular 2+ attribute directive datepicker
Stars: ✭ 123 (-12.77%)
Mutual labels:  angular2
Angular2 Spring
Angular 2+ and Spring Integration
Stars: ✭ 133 (-5.67%)
Mutual labels:  angular2
Amazing Time Picker
Timepicker (Clock Picker) for Angular 2, Angular 4 and Angular 5, Angular 6, Angular 7 - Compatible with Angular Material
Stars: ✭ 142 (+0.71%)
Mutual labels:  angular2
Ionic3 Components
A project full of ionic 3 components and samples - to make life easier :)
Stars: ✭ 1,689 (+1097.87%)
Mutual labels:  angular2
Coreui Free Bootstrap Admin Template
CoreUI is free bootstrap admin template
Stars: ✭ 11,038 (+7728.37%)
Mutual labels:  angular2

Angular-Cesium

Drawing

CircleCI npm version

Create amazing mapping applications using Cesium and Angular components. Angular-Cesium is focused on high performance and simple usage. Check out our Docs and our blog post Intro to angular-cesium.

Getting started

If you are using Angular CLI, you can add the angular-cesium library using schematics

  • add angular-cesium:
    $ ng add angular-cesium
    

Manual installation details here.

Demo

  • You can try and learn about angular-cesium from our demo.
  • The demo contains many examples, check out the demo-map.component.ts file.
  • Run:
    $ git clone https://github.com/articodeltd/angular-cesium.git
    $ cd angular-cesium
    $ yarn
    $ yarn demo:start
    $ open http://localhost:4200
    
  • More demos:

Basic example

  • In your HTML file :

      <ac-map>
          <ac-layer acFor="let plane of planes$" [show]="showTracks" [context]="this">
              <ac-billboard-desc props="{
                        image: plane.image,
                        position: plane.position
                      }">
              </ac-billboard-desc>
              <ac-label-desc props="{
                      position: plane.position,
                      text: plane.name
              }">
              </ac-label-desc>
          </ac-layer>
      </ac-map>
    
  • ac-map creates the map

  • ac-layer component represent an array of entities that will be displayed on the map.

    • acFor attribute accepts an RxObserver planes$ , ac-layer will subscribe to the observer and will handle all updates for you.
  • Add descriptions components to determine which entity to render, in our example: ac-billboard and ac-label .

    • This example will render a billboard(icon) and label for each plane in the stream.
    • props accepts the same member options as cesium corresponding class. For example ac-billboard-desc accepts same members as cesium Billboard.

For better understading check out the layer guide

Supported Entity types

Map Events

MapEventsManagerService is a util service for managing all the map events (Click, Mouse_up...), it expose easy API for entity selection, event priority management and adds custom events (drag and drop, long press).

Usage:

@Component(...)
export class SomeComponent{
  constructor(private eventManager: MapEventsManagerService){

    // Input about the wanted event
    const eventRegistration: EventRegistrationInput = {
      event: CesiumEvent.LEFT_CLICK, // event type enum. [required!]
      modifier: CesiumEventModifier.CTRL, // event modifier enum. [optional]
      entityType: AcEntity, // raise event only if AcEntity is clicked. [optional]
      priority: 0, // event priority, default 0 . [optional]
      pick: PickOptions.PICK_FIRST // entity pick option, default PickOptions.NO_PICK. [optional]
    };
    const clickEvent = this.eventManager.register(eventRegistration).subscribe((result) => {
          // The EventResult will contain:
          // movement(screen location of the event), entities(your entities) , primitives( cesium primitives, like label,billboard...)
    	  console.log('map click', result.movement, 'primitives:', result.primitives, 'entities', result.entities);
    	});
  }
}

For further details check the map events guide

Map layers

With angular cesium you can define your map provider in a declarative way using ac-map-layer-provider :

    <ac-map-layer-provider *ngIf="appSettingsService.showMapLayer" [provider]="MapLayerProviderOptions.ArcGisMapServer"
                           [options]="{
                                url : 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer'
                            }">
    </ac-map-layer-provider>
  • All cesium imagery map layers are supported , defined with [provider] according to the MapLayerProviderOptions enum
  • Pass additional configuration to [options] . url is mandatory.
  • Support multi map layers, map ordering and map image layer configuration.
  • Check out usage example from our demo here

3d Tiles

   <ac-3d-tile-layer
       *ngIf="appSettingsService.show3dtiles"
       [options]="{
         url: 'https://beta.cesium.com/api/assets/1461?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJkYWJmM2MzNS02OWM5LTQ3OWItYjEyYS0xZmNlODM5ZDNkMTYiLCJpZCI6NDQsImFzc2V0cyI6WzE0NjFdLCJpYXQiOjE0OTkyNjQ3NDN9.vuR75SqPDKcggvUrG_vpx0Av02jdiAxnnB1fNf-9f7s'
       }">
   </ac-3d-tile-layer>

Multiple maps support

Angular Cesium supports integration of multiple maps, for more details here

Camera

Camera Keyboard Control Service

Service that manages keyboard keys and execute actions per request. Inject the keyboard control service into any layer, under your ac-map component, And defined you keyboard handlers using setKeyboardControls.

 this.keyboardControlService.setKeyboardControls({
      W: { action: KeyboardAction.CAMERA_FORWARD },
      S: { action: KeyboardAction.CAMERA_BACKWARD },
      D: { action: KeyboardAction.CAMERA_RIGHT },
      A: { action: KeyboardAction.CAMERA_LEFT },
    },

CameraService

Util service that wraps cesium camera, exposes the scene's camera and screenSpaceCameraController.

MapsManagerService

Angular Cesium extends cesium api and expose additional features, but if you want to use pure cesium api you can use MapsManagerService to receive cesium viewer or any other util service that was created by ac-map.

class MyComp {
constructor(mapsManagerService: MapsManagerService)
	const viewer = mapsManagerService.getMap().getCesiumViewer();
	const mapEventManager = mapsManagerService.getMap().getMapEventsManager();
	const cameraService = mapsManagerService.getMap().getCameraService();
}

MapsManagerService manages all of the maps. The service exposes a getMap() function that can be used to retrieve a specific map by id.

ZoomToRectangleService

A service that is used to activate a zooming tool that enables the user to draw a rectangle over the map and zoom into the drawn rectangle

Geometry Editors And Widgets

Part of AngularCesiumWidgetsModule are useful geometry editors tool:

Check out the Geometry Editors Doc

ScreenshotService

Take screenshot of your cesium globe.

ContextMenuService - stackblitz

create any custom angular component and anchor it to a map position, context menu guide.

Documents

License

Mit License

Support

Angular Cesium is an open source project, feel free to open issues,ask questions and open PRs. For additional support options contact us: [email protected].

Articode is a software company that specializes in GIS solutions and is the creator and the maintainer of angular-cesium. Feel free to contact us for consulting or any business endeavors.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].