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

Problem of embeded map with search bar #1902

Open
ldtsang74 opened this issue Nov 8, 2024 · 1 comment
Open

Problem of embeded map with search bar #1902

ldtsang74 opened this issue Nov 8, 2024 · 1 comment

Comments

@ldtsang74
Copy link

I try to embed a map and enable the "search" plugin by adding the script to _geonode_config.html

{% extends 'geonode-mapstore-client/_geonode_config.html' %}
{% block override_local_config %}

<script> window.__GEONODE_CONFIG__.overrideLocalConfig = function(localConfig, _) { { localconfig.plugins.map_embed.push({ "name": "search" }); return localConfig; }; </script>

{% endblock %}
IMG

It is fine but the location of search bar overalap with layer button at left top corner. Anyone can help to solve it that put the search bar to right top corner. Thank you.

@allyoucanmap
Copy link
Collaborator

allyoucanmap commented Nov 18, 2024

@ldtsang74 could you try to add also the OmniBar plugin to see if it solves the problem?

{% extends 'geonode-mapstore-client/_geonode_config.html' %}
{% block override_local_config %}
<script>
window.__GEONODE_CONFIG__.overrideLocalConfig = function(localConfig, _) {
  localconfig.plugins.map_embed.push({ "name": "Search" });
  localconfig.plugins.map_embed.push({ "name": "OmniBar" });
  return localConfig;
};
</script>
{% endblock %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants