Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Request a feature for lookup location (lat,lon) info which returns the city/town name from the map label layer #17

Closed
jimmy12day opened this issue Jun 27, 2019 · 3 comments
Labels
feature request New feature or request

Comments

@jimmy12day
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Current map label layer is passing a MapLabel object which only include the Text and Style but not the lat lon of this.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Option one, create a lookup function in the maplabel layer which take lat lon as input and return the city and town name for it.Those info should be read only.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Option two, pass the lat lon info to the MapLabel and organize the maplabels as State/City/Town which allow people to get all the information. Those should be readonly.
Additional context
Add any other context or screenshots about the feature request here.

@jimmy12day jimmy12day added the feature request New feature or request label Jun 27, 2019
@kircher1
Copy link
Contributor

kircher1 commented Jul 2, 2019

Hi, thanks for the feature request!

To clarify, do you need the actual LatLon of the label itself, or just a way to look up labels on the MapLabelLayer which may be "near" a LatLon?

@jimmy12day
Copy link
Author

Hi Kircher1,
Thank you for the reply. I am looking for an actual Latlon of the label itself. If that is impossible, can we make the label in a well know hierarchy? For example, the 'Country' name should be the parent of the 'State' name, The 'State' name should be parent of the 'City' name, the 'City' name should be the parent of all the town name. The later option will be ideal.
Bin

@jimmy12day
Copy link
Author

I figured a solution for now. The scale of the maplabels are different and seems to be linear. So the largest map label can be identified.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants