Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Feature/map options #65 #71

Merged
merged 11 commits into from
Aug 27, 2015
Merged

Feature/map options #65 #71

merged 11 commits into from
Aug 27, 2015

Conversation

jwasilgeo
Copy link
Contributor

@tomwayson please take a look. (Hopefully) resolves #65. Please see commit comments for high-level changes.

Jacob Wasilkowski added 2 commits August 20, 2015 22:11
… reading an object hash via scope function binding to $scope.mapOptions; removed mapOptions validations
@jwasilgeo
Copy link
Contributor Author

Additional to do:

  • Rename related docs and test pages to "additional-map-options" (Additional Map Options)
  • Update example docs page routes, contoller, view, etc. to accommodate renamed files
  • Add link from Additional Map Options docs page to the related test page
  • Update test page to use inline JSON for mapOptions, but update the example docs page to use $scope.mapOptions defined in controller
  • Read the map options above the check for web map id; createMap() method can also accept the mapOptions object
  • Update Additional Map Options test page to show how to construct a map with both $attrs.webmapId and $scope.mapOptions
  • Create new test page or example docs page to load a map using a non-web Mercator projection as well as construct a Popup. Pass the extent and popup through the mapOptions. Do not supply center/zoom/basemap. Use extentChange to report changes to the extent on the page. Remove $attrs.extent convenience attribute, and add new code in the esriMap module for Extent and Popup construction.

Jacob Wasilkowski added 3 commits August 23, 2015 10:38
…-options"; added link from docs example to test page with inline JSON style
…e(); altered some wording on the additional-map-options docs and test pages
@tomwayson
Copy link
Member

Go @jwasil , it's your birthday 🍰!

New examples/test page look great. It occurs to me that one of the two should probably load a web map to demonstrate the capabilities of passing the options when loading a web map. You can either add that to your list above if you want to handle it in this PR, or create a new issue for the backlog.

}
};

/*esriLoader.require(['esri/geometry/Extent', 'esri/SpatialReference'], function(Extent, SpatialReference) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should remove this comment block b/c anything in this file shows up the code snippet on the examples page:

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tomwayson thank you for reviewing what is in here so far! You're completely right about the commented out code showing up in the front-facing code snippet. That's just sitting in there temporarily until I move it out to a new example/test page that loads in an extent and infoWindow from the mapOptions.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha! I'll wait for all the checkboxes to be ticked before final review. Thanks!

@jwasilgeo
Copy link
Contributor Author

@tomwayson good point on showing a webmapId and mapOptions jiving together. I've updated the to do list above. Feel free to modify the to do list if anything else comes to mind. Thanks ✋-5

…ne webmap-id and inline map-options; updated related example docs page with more descriptive info
Jacob Wasilkowski added 2 commits August 26, 2015 20:27
… creation based on mapOptions in esriMap directive, including adjustments to how extent-changes are handled with different map projections; replaced console.log with $log.log in esriMap directive; updated "Simple Map" subtitle as per issue #70;
@jwasilgeo
Copy link
Contributor Author

Hey @tomwayson feel free to start digging in! The new "Advanced Map Options" example page is up, which required changes in a few spots to the esriMap directive; the most recent commit attempts to compartmentalize those changes. Looking forward to your thoughts on how the Extent and Popup are constructed, particularly the srcNodeRef param on the Popup. Thanks!

only needed for debugging, should not be in release
also, I don't like to use $log, see:

http://stackoverflow.com/questions/24185847/why-use-angulars-log-instead-of-console-log#comment41761510_24185961
does not use binding to center/zoom
this caused errors when map extent-change handler
tried to update center, so I had to modify that a bit
also, updated descriptions for all examples
tomwayson added a commit that referenced this pull request Aug 27, 2015
Feature/map options #65

resolves #65
resolves #70 (and then some)
@tomwayson tomwayson merged commit 0dde574 into master Aug 27, 2015
@tomwayson tomwayson deleted the feature/mapOptions-#65 branch August 27, 2015 06:38
@tomwayson
Copy link
Member

Great work @jwasil! I made a few minor changes.

I really appreciate you digging into the extent and info window options on top of everything else. I like the way you check if the extent needs to be created or not.

I'm actually still playing w/ a few different things like checking for scope properties like basemap, center, and zoom before checking for the web map id, etc. I just wanted to get this thing merged b/c we've gone so far beyond the original bug fix and we can handle any future changes under new issues if need be.

@jwasilgeo
Copy link
Contributor Author

Awesome, @tomwayson! Thanks for reviewing this, providing advice, and doing some additional work on this PR.

I just noticed the "Additional Map Options" test page is not linked to properly. anymore from the "No Basemap" example docs page. I realize I set up the href through the relative path to what the gulp task exposed during dev.

If it doesn't step on something you're looking into, I can do some quick changes to link to the unserved git source. as well as update file names and titles.

@jwasilgeo
Copy link
Contributor Author

^ Please disregard my confusion b/w additional map options and no basemap above. This was written before ☕! The only thing is how to handle the link to the additional map options test page.

@tomwayson
Copy link
Member

Good catch. Please look into why that's not working - the link is right, I just don't know why the test file didn't get deployed.

@jwasilgeo
Copy link
Contributor Author

done and deployed to gh-pages as well :shipit:

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

Successfully merging this pull request may close these issues.

Additional Attributes Example Error: navigationMode must be 'css-transforms' or 'classic'.
2 participants