Skip to content

Commit

Permalink
doc: Updated create_marker docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ecyht2 committed Apr 17, 2024
1 parent 94640e0 commit 2182bbc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/js/map/add_point.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,15 @@ function source_loaded() {
}

/**
* Creates a new marker at the given location.
* Creates a new marker for the map.
*
* @param {number} index - The index of the marker.
* @param {import("maplibre-gl").LngLatLike} location - The location of the marker.
* @returns {import("maplibre-gl").Marker} The created marker.
*
* @example
* ```javascript
* const location = [37.7749, -122.4194];
* const marker = create_marker(0, location);
* const marker = create_marker(location);
* ```
*/
function create_marker(location) {
Expand Down

0 comments on commit 2182bbc

Please sign in to comment.