Skip to content

Commit

Permalink
Add support for showmarker=1 and iframetype=map urls parameters (#…
Browse files Browse the repository at this point in the history
…603)

* Add center map marker svg

* Rename icon marker

* ✨ Transform zoomTo methods async. Introduce 2 new url params: showmarker (0/1 - show marker map center) and iframetype (map -> only map without map controls). Move urls parameters check only when create view options on main map

* set default resolve promise

* refactor `_setupViewer` (avoid temp `promise`)

* refactor `_calculateViewOptions` (remove temp vars)

* comment

* remove function `_setUpDefaultLayers`

* shorten

* convert to async function: `zoomToExtent`

* refactor function `highlightGeometry` (reduce nesting)

* restore `zoom` and `highlight`

* spacing

* refactor functions: `zoomToFid` and `handleZoomToFeaturesUrlParameter`

* allow zero values (`isNaN`)

* fix `typeof`

* other typeofs

* `parseFloat` + `isNaN` instead of multiply

* add 500ms to setTimeout

---------

Co-authored-by: Raruto <[email protected]>
  • Loading branch information
volterra79 and Raruto authored Mar 27, 2024
1 parent 8a415c0 commit 8205b85
Show file tree
Hide file tree
Showing 2 changed files with 313 additions and 246 deletions.
Loading

0 comments on commit 8205b85

Please sign in to comment.