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

Coordinate map set the display area range #21876

Closed
MrSsunlight opened this issue Aug 10, 2018 · 6 comments
Closed

Coordinate map set the display area range #21876

MrSsunlight opened this issue Aug 10, 2018 · 6 comments
Labels
[Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation enhancement New value added to drive a business result

Comments

@MrSsunlight
Copy link

Map initialization is a world map. If the IP location is only a local area, it is very inconvenient to view and display. Can I limit the default display area by setting parameters?

By saving the layer, it is only suitable for opening the specified area in the dashboard. But after using the location jump in discover, the dashboard still displays the world map and does not use the saved visualize layer.

By setting mapCenter and mapZoom to the required default values of 5 and [32.97180377635759, 108.28125] in tile_map_vis.js. And delete the optimized directory and restart kibana. The result did not change the default area to become a map of China.

How can I achieve this? Or where do I set the error?

@timroes timroes added Feature:Region Map [Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation triage_needed labels Aug 10, 2018
@thomasneirynck thomasneirynck added enhancement New value added to drive a business result and removed triage_needed labels Aug 15, 2018
@thomasneirynck
Copy link
Contributor

The current behavior is as follows now:

When saving a visualization with a map, Kibana also saves the center and zoom level of the map. So next time you open that visualization, the map starts up at the same area

When adding a map to a dashboard, it will use the same extent that was saved with the visualization. Note that when you change the zoom on a dashboard, and then save the dashboard, it will save these changes as well. Otherwise, maps always startup at the extent they were saved last with.

@MrSsunlight
Copy link
Author

@thomasneirynck
Can I set the default latitude and longitude region for kibana before building kibana?
I imagine changing the database under geoip to change the default map to Google, changing the latitude and longitude of the display area. Use the configuration file to limit the display area to latitude and longitude, instead of manually changing the replacement override after startup。
Can it be rebuilt by changing the tile_map_vis.js file?

@thomasneirynck
Copy link
Contributor

@sunchanglong1991 no you can't really change that from the code. It will load the lat/lon state from your saved visualization, and apply the behavior as outlined earlier.

I think this would need some code-changes to Kibana to get it to function the way you describe.

@MrSsunlight
Copy link
Author

@thomasneirynck
I have not read the source code. Is there any change that can be used for reference? thanks

@thomasneirynck
Copy link
Contributor

We are working on a new implementation of map visualizations and are not planning to add any new features to the existing implementation. We will take this suggestion under consideration for the new app.

@nreese
Copy link
Contributor

nreese commented Apr 7, 2020

Closing, tracking with #62769

@nreese nreese closed this as completed Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation enhancement New value added to drive a business result
Projects
None yet
Development

No branches or pull requests

4 participants