terra-draw 0.0.1-alpha.45 → 0.0.1-alpha.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,6 +42,7 @@ declare class TerraDraw {
42
42
  });
43
43
  private checkEnabled;
44
44
  private getModeStyles;
45
+ private featuresAtLocation;
45
46
  /**
46
47
  * Allows the setting of a style for a given mode
47
48
  *
@@ -124,6 +125,31 @@ declare class TerraDraw {
124
125
  * @alpha
125
126
  */
126
127
  start(): void;
128
+ /**
129
+ * Gets the features at a given longitude and latitude.
130
+ * Will return point and linestrings that are a given pixel distance
131
+ * away from the lng/lat and any polygons which contain it.
132
+ *
133
+ * @alpha
134
+ */
135
+ getFeaturesAtLngLat(lngLat: {
136
+ lng: number;
137
+ lat: number;
138
+ }, options?: {
139
+ pointerDistance: number;
140
+ ignoreSelectFeatures: boolean;
141
+ }): GeoJSONStoreFeatures[];
142
+ /**
143
+ * Takes a given pointer event and
144
+ * Will return point and linestrings that are a given pixel distance
145
+ * away from the lng/lat and any polygons which contain it.
146
+ *
147
+ * @alpha
148
+ */
149
+ getFeaturesAtPointerEvent(event: PointerEvent | MouseEvent, options?: {
150
+ pointerDistance: number;
151
+ ignoreSelectFeatures: boolean;
152
+ }): GeoJSONStoreFeatures[];
127
153
  /**
128
154
  * A method for stopping Terra Draw. Will clear the store, deregister the adapter and
129
155
  * remove any rendered layers in the process.