* don't register any features in LP. breaks features value reading in KP
* move test plugin to NP
* fix mappings
* update docs
* migrate another test
* use contstants file for BWC with original code
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* remove dateline check for geo_shape queries
* fix jest test
* split bounding box
* replace convertMapExtentToPolygon with formatEnvelopeAsPolygon
* clamp latitudes
* use clampToLatBounds
* use single box where left lon is greater then right lon when crossing 180 meridian
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Code-split the maps-plugin to reduce the initial `maps.plugin.js` size.
There were two main code dependencies in the plugin initialization that were the root cause of the large bundle size.
- `GisMap` wraps the entire application UX, including the add-layer-wizard. The layer wizards only need to be available there. This PR moves the `load_layer_wizard` dependency from the plugin-initialization to the `GisMap` component.
- The `MapEmbeddableFactory` needs to be registered at plugin-initialization. However, this module imports a lot of core-application code. By code-splitting here, we avoid pulling in the entire Maps-app in the main bundle.
This also introduces a lazy-initialization of the `GisMap` itself as an additional split to further reduce size of the bundles.
* [Maps] initial location map settings
* fix tslint
* add button to set to current view
* move button to bottom of form
* review feedback
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [Maps] do not display EMS or kibana layer wizards when not configured
* default tilemap to empty object instead of array
* fix typo
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [Maps] Map settings: min and max zoom
* eslint
* header and footer
* zoom range UI
* save session state in mapStateJSON
* disable button when flyout is open
* tslint
* update layer_control jest test
* tslint
* move settings button to top map chrome
* move map_settings_panel to NP
* remove merge conflict artifact
* fix import for NP migration
* remove unused CSS class
* fix path from NP move
* review feedback
* load map settings in embeddable
* Move actions over
* Move connected components over
* Move components over
* Move selectors over
* Move embeddables over. Set up legacy presence to keep legacy maps embeddables working
* Move angular and services over. Some additional top-level files
* Some file moves. Move styles over to NP
* Handle feature catalogue entry in NP. Add plugin deps to kibana.json
* Move vis registration to NP
* Clean up linting comments. Add linting comments to route controller. Move common to NP
* Add back in i18n context for embeddable
* Fix jest test paths. Fix TS lint errors
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [Maps] fix term join agg key collision
* fix tslint and jest errors
* fix join functional test
* revert LayerDescriptor union and cast to VectorLayerDescriptor instead
* move getJoinKey out of constants and into its own file
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Adds support for adding an external vector tile service to Maps. This is experimental functionality. To enable, add `xpack.maps.enableVectorTiles: true` to the `kibana.yml`configuration file.
* Routes dependencies updated (except for routes itself)
* Replace all chrome deps except map controller
* Replace npSetup and npStart with normal plugin init logic. Some clean up
* Bind kibana services in map controller
* Use kibana services in map controller
* Convert remaining deps that aren't critical to legacy operation
* Remove last angular bindings to gis map saved object loader
* Consolidate kibana services in NP
* Some fixes. Remove console logs
* Fix type errors
* Fix jest test path refs
* Accomodate legacy 'hacks' and init services for vis type alias
* Review feedback. Remove/update unused declarations
* getFileUpload actually just needed Component tacked on the end
* Handle visibility of toolbars for full screen mode using new core chrome. Should fix test
* Import source types in getInitialLayers to ensure registry
* [Maps] fix double fetch when filter pill is added
* remove isDataSyncActive
* set dataMetaAtStart to null instead of deleting
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [Maps] fix bug where toggling Scaling type does not re-fetch data
* reset to empty array instead of deleting
* move setting of layer type to action creator instead of side effect of UPDATE_SOURCE_PROP
* review feedback
* Move layers to new location
* Update layer path refs
* Update np kibana services to cover all required services
* Init np kibana services in legacy plugin. Port init functions to np
* Path updates, supporting file moves, general clean up
* More moves of related files and clean-up of legacy refs
* Path updates. Typescript warning fixes
* Update test paths
* Clean up unused kibana services usage in legacy
* Remove unused http ref
* Test fixes and clean up
* Remove unused snapshots
* Add np service init to embeddables too
* Move validate color picker to NP
* [Maps] source registry and register seperate clusters and heat map sources
* split into to registries
* add EMS file source
* add geojson upload layer
* register rest of sources
* i18n changes
* ts lint errors
* fix jest test
* fix pew-pew source
* review feedback
* import registires in plugin so they exist in embeddable
* remove order parameter and move all layer registies into single file
* fix functionalt est
* pass constructor to sourceREgistry instead of factory
* review feedback
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* typescript map embeddable
* Address code review comments and update some usages in SIEM and uptime to the new types
* More clean up - carry over some of the SIEM types to maps for render tool tip
* Address more review comments