Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔙 from #603 - Add support for showmarker=1 and iframetype=map urls parameters #604

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

github-actions[bot]
Copy link

Backport 8205b85 from #603 to v3.9.x.

  1. showmarker show a marker on center of map. Possible values 1 (show) - 0 (not visible).

Ex. ?showmarker=1

Screenshot from 2024-03-25 15-30-57

  1. iframetype set type of iframe. Actually only map value is handle. map mean no mapcontrols. Show only map

Ex: ?iframetype=map

Screenshot from 2024-03-25 15-36-26

…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]>
(cherry picked from commit 8205b85)
@github-actions github-actions bot added the feature New feature or request label Mar 27, 2024
@volterra79 volterra79 merged commit 90bf97e into v3.9.x Mar 27, 2024
@volterra79 volterra79 deleted the backport-603-to-v3.9.x branch March 27, 2024 13:10
@volterra79 volterra79 self-requested a review March 27, 2024 13:10
@volterra79 volterra79 self-assigned this Mar 27, 2024
@volterra79 volterra79 added this to the v3.9 milestone Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant