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

Tool: OpenLayers API #30

Open
AmeliaBR opened this issue May 24, 2019 · 2 comments
Open

Tool: OpenLayers API #30

AmeliaBR opened this issue May 24, 2019 · 2 comments
Labels
discussion: sample JS tool an existing web map tool: should we include it in the review? what should we say about it? section: reference tools The "Reviewed JavaScript Tools" overview section status: editor's draft there's a draft section in the report that corresponds to this discussion

Comments

@AmeliaBR
Copy link
Member

AmeliaBR commented May 24, 2019

This issue is for discussion of the reference tool "OpenLayers API".


overview and docs

Another reference example that can be as complicated as you make it, but also has very simple examples that will be used as the basis for the reference.

@AmeliaBR AmeliaBR added discussion: sample JS tool an existing web map tool: should we include it in the review? what should we say about it? status: placeholder there's a matching section heading / some text in the report, but it's far from complete labels May 24, 2019
@prushforth
Copy link
Member

OpenLayers is the most mature of the open source mapping libraries, and members of their project are also members of this GitHub organization, although not yet members of the CG. It would be awesome if top level devs like @ahocevar and / or @bartvde would be willing to help us define an API for an eventual (proposed) <map> and <layer> DOM.

@AmeliaBR AmeliaBR added status: editor's draft there's a draft section in the report that corresponds to this discussion section: reference tools The "Reviewed JavaScript Tools" overview section and removed status: placeholder there's a matching section heading / some text in the report, but it's far from complete labels May 25, 2019
@nchan0154
Copy link
Contributor

Notes for widget capabilities:

Generate a default map for a given area

Not supported, need to provide a tileset.

Display a map using a single custom image as a map layer

Full support, example from their docs.

Display a map using tile data from an author-specified web map service

Full support, this is the default behavior for Open Layers.

Display a basic map without JavaScript.

No support, Open Layers is a JS library.

Show pinpoint locations or custom markers on the map

Fully supported. You could add points as a generic Point object or as a Feature which allows for customized icons.

Draw polygons or polylines as stylable, interactive vector graphics (separate from the image tiles)

Full support.

Support hyperlinks from markers or vector features

Full support. Example from their docs

Display map data attribution and links

Full support, this is automatically generated if you use tiles from preconfigured sources like OSM, and it is possible to pass in custom attribution.

Select map view from latitude and longitude point

Full support, this is the default selection method.

Select map view from street address or place name

Supported through a third party plugin

Display map tiles defined in various common coordinate systems

Full support through the Projection class

Reproject map tile data into a new projection or globe view

No support. Like Leaflet, you can destroy and reinitialize the map if another projection is needed.

Save the location or export to other application

No support.

Zoom the map independently from the rest of the page

Full support. Note, for full keyboard support, a tabindex must be added to the map container so that it can be focused.

Pan the map display

Full support. Same as above for keyboard support.

Load additional map tiles when they pan into view

Full support.

Wrap/duplicate data tiles when panning around the globe

Full support.

Maintain reasonable scale of labels and lines when zooming

Full support.

Dynamically load different resolution map tile on zoom

Full support.

Hide or show (and maybe dynamically load) vector features and labels on zoom

Full support.

Apply custom styling to map markers and vector features

Support, you can use custom images or style vector features with properties such as stroke and fill.

Apply custom styling to map controls

Full support, you can style controls with CSS.

Toggle whether default controls are displayed

Full support, passed in the initial configuration object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion: sample JS tool an existing web map tool: should we include it in the review? what should we say about it? section: reference tools The "Reviewed JavaScript Tools" overview section status: editor's draft there's a draft section in the report that corresponds to this discussion
Projects
None yet
Development

No branches or pull requests

3 participants