-
Notifications
You must be signed in to change notification settings - Fork 12
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
Tool: OpenStreetMap embed #26
Comments
Addendum: they do have a REST API for accessing individual data files, which is relevant for the discussion on data formats, but not for map widgets or client side API. Edit: The link I originally posted is the reference for downloading the OSM data files (or uploading edits) on their main server. The reference for accessing individual image tiles might be more relevant for web map usage. |
Yes, the popular mapping frameworks use a URL template for accessing tiles, plus JavaScript options for conditioning how the client interacts with the service e.g. tile sizes and other stuff. For example:
Note that URL templates aren't URLs, and need semantic assistance from the library. |
4.3.2 Display a map using tile data from an author-specified web map serviceNot supported. You can use their data to render your own map tiles if desired, but not as a part of their embeds. 4.3.3 Display map tiles defined in various common coordinate systemsNot supported. 4.3.4 Show pinpoint locations or custom markers on the mapIt is possible to show a single marker on a embed map, but to show multiple markers, you need to 'deploy your own slippy map', which is their way of saying use their map tiles with an alternate library. 4.3.5 Draw polygons or polylines as stylable, interactive vector graphics (separate from the image tiles)Not possible with embedded maps. 4.3.6 Support hyperlinks from markers or vector featuresNot possible with embedded maps. 4.3.7 Display a basic map without JavaScript.Not supported, no fallbacks provided when JavaScript is not loaded. 4.3.8 Zoom the map independently from the rest of the pageSupported, the focus is flashing a bit oddly but it is navigable. 4.3.9 Pan the map displaySupported with no visible keyboard focus as mentioned 4.3.10 Load additional map tiles when they pan into viewFull support, experience is seamless. 4.3.11 Wrap/duplicate data tiles when panning around the globeFully supported. 4.3.12 Maintain reasonable scale of labels and lines when zoomingSame question as Google Maps, while there is scaling applied, the labels can be very small (around 8-9px). What level of support do you think this constitutes as, @AmeliaBR? 4.3.13 Dynamically load different resolution map tile on zoomFully supported. 4.3.14 Hide or show (and maybe dynamically load) vector features and labels on zoomFull support, features that are too small to be perceived are hidden as you zoom out and vice versa. 4.3.15 Display map data attribution and linksSupported, attributed to OpenStreetMap contributers 4.3.16 Apply custom styling to map markers and vector featuresNot supported, need to deploy own slippy map using a third party library. 4.3.17 Apply custom styling to map controlsNot supported 4.3.18 Toggle whether default controls are displayedNot supported 4.3.19 Select map view from latitude and longitude pointFully supported, can search by lat long and export that map. 4.3.20 Select map view from street address or place nameFull support. 4.3.21 Reproject map tile data into a new projection or globe viewNo support 4.3.22 Save the location or export to other applicationClicking through to the larger map will allow you to export the map as a link, HTML, or just the point as a Geo URI. I think the GEO URI component constitutes as full support. |
If the labels always stay (approximately) the same size, that counts as support for this feature. But it's definitely worth noting somewhere that the default font size is often very small & may not reflect the user's accessibility preferences. |
This issue is for discussion of the reference tool "OpenStreetMap embeds".
OpenStreetMap allows you to create iframe embeds from their website using the Share → HTML option or by generating the URL.
I don't think they have any other direct API for web developers, although their data and generated tiles are of course integrated in many other APIs. But I'm not an expert, and their help pages are more focused on contributing to the project than on extracting data from it!
The text was updated successfully, but these errors were encountered: