Closed kellyhutchins closed 9 years ago
Add:
Maybe:
@driskull zoom and level are the same we should probably use level as teh url param since that's what online uses.
I think the most commonly requested params are center, extent, level and find so those are the ones I think we should support. I don't think we should add support for the others to the template boilerplate at this time.
@ycabon for 4.0 do you think it would make sense to just rename the map option from "zoom" to "level" if that's what we're calling it everywhere?
Pull request looks good - merged.
@driskull for 4.0, we are using zoom, not level. WebMap has also some props like min/maxZoom. Level only exists in LOD.
hmmm. consistency is tough :(
The online viewer uses "level" as a URL parameter so thats what our apps were going to use. I'm wondering if we should use "zoom" instead.
Maybe we should just add both so someone could use either of them lol.
@driskull i have some apps that use zoom as a url param to hide/show the zoom slider... so maybe just stick with level and make sure we doc what setting the value means?
ok. Seems like the 4.0 API should use level, zoomLevel or just maxLevel, MinLevel. zoom is kinda vague. zoom what?
Another to see that feature could be to encode the map location as one parameter? center/zoom
Add a new class that handles supporting map params like center, zoom, level, extent.