-
Notifications
You must be signed in to change notification settings - Fork 48
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
map package #95
base: main
Are you sure you want to change the base?
map package #95
Conversation
designing map package based on openstreetmap and leaflet
Hi @colinpape, @treygrainger, there is someone for checking pull request ? |
Hey @MockingMagician, sorry for the delay, two things: I see that you are requesting The second thing is that you need to include |
It's also not okay to rendering openstreetmap tiles from an external url directly on the page, as this exposes end user IP addresses to the openstreetmap servers. I think ideally to pull this off we would either:
#2 would be the easiest short-term, but #1 would be the most effective ultimate solution. We'd need to create an image cache API to do #2 appropriately (securely and so the image cache is only used for the packages and not as an open proxy), though, which would take a little extra work. |
I totally agree about not exposing the end user's IP. You should think of this package as a POC for a map on presearch. Is there any way to help you implement this functionality on the server or nodes on presearch? CU |
Hi @MockingMagician sounds good. FYI, we've just created a new #open-source-dev channel in our Discord group (https://discord.com/invite/VZaDSheRvR) for folks to collaborate on packages. Happy to chat here on github, but if you want you're also free to join there if you want some more interactive discussion. re: the server implementation, ultimately I think we're going to need a map tile server implementation. Probably the easiest way to do this would be:
#2 is a bit more tricky and could maybe be a longer term goal. After our mainnet launch, we'll be working on search indexes, which will include partitioning and more sophisticated query routing logic. We could potentially piggy-back on that at the time and think of the map tiles almost like additional partitioned indexes (but just lookups of tiles as opposed to search indexes). If you're interested in assisting on the server side with the creation of the tile server, we could create a new repository and give you write access and enable you to work on building it out. There are several online tutorials for doing this (docker image would probably be best), though I think the trick would be to try to optimize for the particular use case and zoom level so as not to require insane amounts of memory to run this. Let us know if you'd be interested in pursuing this. It's something the core dev team will eventually take on if you or someone from the community does not, but it will be a while before we get to it. |
The purpose of this package is simply to quickly view an address through presearch.