-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add support for registering new protocol #9
Open
tejaede
wants to merge
52
commits into
master
Choose a base branch
from
features/register-new-protocol
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Allows the map to be stretched to fit a target DOM element
The static map will now automatically determine the appropriate zoom detail level based on the client devicePixelRatio. Consequently, the static map now accepts bounds instead of a center and zoom level.
Montage Geo extends the GeoJson specification by adding an additional style property to feature. If a feature has a style property it is serialized into the GeoJson object and deserialized when read in.
The static map now draws features if the layer being drawn has a feature collection property.
Remove reference to unused anchor
Icons are now positioned from their top left corner (like the HTML 5 canvas API) instead of its center.
The actual image of a MapImage may be smaller than the MapImage's size, e.g. when the image service returns a smaller image than what was specified due to exceeding max export size limits.
Layers are fetched through montage-data service by making a fetch for Layer with a criteria that includes the Protocol and source URL. Intern- ally the layer service delegates the fetch to a child service special- ized for that protocol.
- Set Protocol.ArcGIS.supportsFeatureRequests to true - Fix the featureMinZoom flags in the map bindings determining what is a feature layer and what is a tile layer. featureMinZoom is the minimum zoom at which a layer can show features. This means a layer shall be a feature layer is the current map zoom is greater than or equal to the layer's featureMinZoom.
- Call super in constructor - Update images on map move
Create a collection in FeatureCollectionOverlay if a layer is assigned and store the fetched features in that collection.
Logging for each symbol negatively affects performance when removing a layer with many features.
FeatureCollectionOverlay assumed that it had a map when it received a collection. This commit allows the developer to assign the collection to the overlay before it is added to the map.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Applications using montage-geo may need to support non-standard protocols. Fetching data for these protocols can be implemented by specializing
feature-delegate
andmap-image-delegate
. What's missing is a way for themap
to identify whether a layer with a non-standard protocol is a feature layer or a tile layer.For reference, the map categorizes layers using the following bindings:
https://github.com/montagejs/montage-geo/blob/features/contour/ui/map.reel/map.js#L26-L36
This commit adds a new class method to
Protocol
to create and register a new protocol with the necessary flags.