GeoNode / geonode-mapstore-client

MapStore Client for GeoNode
http://geonode.org/geonode-mapstore-client/master
Other
15 stars 108 forks source link

Problem of embeded map with search bar #1902

Open ldtsang74 opened 1 week ago

ldtsang74 commented 1 week ago

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 %}

{% 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 commented 14 hours ago

@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 %}