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

Add support for showmarker=1 and iframetype=map urls parameters #603

Merged
merged 19 commits into from
Mar 27, 2024

Conversation

volterra79
Copy link
Member

@volterra79 volterra79 commented Mar 25, 2024

  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

…ker (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
@volterra79 volterra79 added feature New feature or request backport to v3.9.x labels Mar 25, 2024
@volterra79 volterra79 added this to the v3.10 milestone Mar 25, 2024
@volterra79 volterra79 self-assigned this Mar 25, 2024
@volterra79 volterra79 marked this pull request as ready for review March 25, 2024 15:04
@Raruto Raruto changed the title Handle showmarker and iframetype urls parameters Add support for showmarker=1 and iframetype=map urls parameters Mar 26, 2024
@volterra79 volterra79 requested a review from Raruto March 26, 2024 18:41
@volterra79 volterra79 merged commit 8205b85 into dev Mar 27, 2024
@volterra79 volterra79 deleted the show_marker_on_xy_url_parameter branch March 27, 2024 13:08
github-actions bot pushed a commit that referenced this pull request Mar 27, 2024
…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)
volterra79 added a commit that referenced this pull request Mar 27, 2024
…603) (#604)

* 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)

Co-authored-by: Francesco Boccacci <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport to v3.9.x feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants