# ZoomLevelSet

**URL:** <https://community.thinkgeo.com/t/zoomlevelset/5238>\
**Category:** WebForms\
**Created:** [March 19, 2010, 1:48pm UTC](https://community.thinkgeo.com/t/zoomlevelset/5238 "2010-03-19T13:48:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charles](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/c/6f9a4e/32.png) [@Charles](https://community.thinkgeo.com/u/Charles)\
**Post date:** [March 19, 2010, 1:48pm UTC](https://community.thinkgeo.com/t/zoomlevelset/5238/1 "2010-03-19T13:48:20Z")

</div>

I&nbsp;have&nbsp;a&nbsp;desktop&nbsp;application&nbsp;using&nbsp;an&nbsp;SQLServer&nbsp;Spatial&nbsp;dataset.&nbsp;&nbsp;I&nbsp;am&nbsp;planning&nbsp;on&nbsp;creating&nbsp;up&nbsp;to&nbsp;20&nbsp;geometry&nbsp;records&nbsp;per&nbsp;feature&nbsp;to&nbsp;allow&nbsp;for&nbsp;differing&nbsp;levels&nbsp;of&nbsp;detail&nbsp;based&nbsp;on&nbsp;the&nbsp;scale&nbsp;of&nbsp;the&nbsp;current&nbsp;display.&nbsp;&nbsp;In&nbsp;the&nbsp;Desktop&nbsp;Edition,&nbsp;the&nbsp;map&nbsp;control&nbsp;has&nbsp;a&nbsp;property&nbsp;for&nbsp;ZoomLevelSet.&nbsp;&nbsp;I&nbsp;name&nbsp;all&nbsp;20&nbsp;zoom&nbsp;levels&nbsp;and&nbsp;then&nbsp;I&nbsp;can&nbsp;access&nbsp;the&nbsp;current&nbsp;Zoom&nbsp;Level&nbsp;using&nbsp;this&nbsp;code:

Map1.ZoomLevelSet.GetZoomLevel(Map1.CurrentExtent,&nbsp;Map1.Width,&nbsp;Project.GeographyUnits).Name

I&nbsp;am&nbsp;now&nbsp;trying&nbsp;to&nbsp;use&nbsp;much&nbsp;of&nbsp;the&nbsp;same&nbsp;code&nbsp;to&nbsp;create&nbsp;a&nbsp;web&nbsp;application.&nbsp;&nbsp;Unfortunately,&nbsp;the&nbsp;WebEdition.Map&nbsp;doesn't&nbsp;have&nbsp;a&nbsp;property&nbsp;ZoomLevelSet&nbsp;so&nbsp;I&nbsp;can't&nbsp;reference&nbsp;the&nbsp;ZoomLevelSet&nbsp;in&nbsp;thesame&nbsp;code.

My&nbsp;first&nbsp;question&nbsp;is&nbsp;how&nbsp;do&nbsp;I&nbsp;implement&nbsp;this&nbsp;in&nbsp;the&nbsp;web&nbsp;edition?

Secondly,&nbsp;why&nbsp;would&nbsp;you&nbsp;change&nbsp;the&nbsp;way&nbsp;the&nbsp;zoom&nbsp;level&nbsp;set&nbsp;is&nbsp;referenced?

Charles

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [March 22, 2010, 1:48am UTC](https://community.thinkgeo.com/t/zoomlevelset/5238/2 "2010-03-22T01:48:49Z")

</div>

Charles,&nbsp;  
&nbsp;&nbsp;  
&nbsp;The&nbsp;WebEdition&nbsp;uses&nbsp;scale&nbsp;values&nbsp;that&nbsp;corresponds&nbsp;to&nbsp;ZoomLevels&nbsp;to&nbsp;draw&nbsp;layer.&nbsp;I&nbsp;think&nbsp;you&nbsp;can&nbsp;get&nbsp;the&nbsp;scales&nbsp;list&nbsp;by&nbsp;accessing&nbsp;Map1.ClientZoomLevelScales&nbsp;property,&nbsp;and&nbsp;then&nbsp;use&nbsp;the&nbsp;scale&nbsp;value&nbsp;instead&nbsp;of&nbsp;Name&nbsp;to&nbsp;the&nbsp;do&nbsp;justify.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I’m&nbsp;not&nbsp;sure&nbsp;if&nbsp;the&nbsp;workaround&nbsp;meet&nbsp;your&nbsp;actual&nbsp;requirement.&nbsp;Any&nbsp;question&nbsp;please&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Johnny,&nbsp;
