-
Notifications
You must be signed in to change notification settings - Fork 4
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
Capabilities, Use Cases and Requirements which this responds to, and how well it does so. #32
Comments
Use Case: Allow a user to reset the map to their starting point I have thought about adding a "Home" control to the map, but not got around to doing it. The home icon is often in the upper left hand corner of the map and it returns the map to the original location and zoom. But there could be other behaviours on top of that, such as resetting the DOM to it's original value i.e. removing layers that aren't in the page. If that was added, it wouldn't be different than refreshing the whole page, I believe. Also to be considered, should there be a media fragment for map location? I've added fragment processing to this page, but what if there was more than one map on the page? What would the fragment do? Probably not much. |
Use Case: Specify a data source for a map In this proposal, you either set the
or
|
Use Case: Change the bearing of a map This is a good idea, but I haven't implemented it, mostly because it's not supported by Leaflet at this time. Ideally, yes, this should be possible, and an attribute could be added to the |
Use Case: Allow the user to control the layer displayed by a map I think that use case needs more description to identify what it means for the user to control the layer displayed by the map. |
Use Case: Allow the user to select a different style for a map There are different aspects to this, since a layer can be tiles, images, vectors, videos etc., or a combination thereof. We could talk in a separate issue perhaps about how to allow CSS to be applied to the styling problems of map features. OTOH, this is about the user, so in that regard, MapML has got some proposals for that, as shown by this example (if it still works after 2019 tbd). Anyway MapML allows the map author to specify alternate links to styles that are then user-selectable in our custom elements. Lots more could be typed here, but I'll leave it at that until this arises for discussion |
Use Case: Add a custom control to a map Not yet supported, but strongly agree with the requirement for this. Leaflet has a pretty nice extension model for custom controls. I was thinking that |
Use Case: Display multiple point locations on a single map Add them via |
Use Case: Create, initialise, and display a map Add a |
Use Case: Display drawings or schematics without geographic coordinates I don't think the current content model of
Non-geographic content doesn't have a need for (at least) |
Capability: Add a layer to a map
You add a
<layer>
element as a DOM child of the<map>
element.The text was updated successfully, but these errors were encountered: