Thank you Ben!!!
It turns out there we two things I was doing wrong. I was applying my styles to the wrong zoom level set, and I was not synching with the client properly.
This works perfectly now!
Custom Zoom Levels
Jeremy,
That’s great! Just let me know if you have any more issues :)
Thanks,
Ben
Thank you Ben. This works brilliantly now. It turns out the reason it wasn’t working before was I was applying my styles to the wrong layer. where I should have applied it to the 1.5 scale layer, I was applying it to the 99998.5 scale layer.
I must admit though that a written up article on this might not be a bad Idea as I’m sure I’m not the only person who will want to work with custom zoom levels. And I would never have figured out the actual scale that you must set with out your help here.
Thanks again.
Jeremy
Jeremy,
Thanks for your suggestion, we will do that. Very happy it’s helpful to you.
Ben
Hello,
I have a problem regarding customized zoom level.
1st of all, I tried the starting guide instructions for Map suite web AJAX 3.0 for showing labeled layers.. and It didn't show up.Until a certain zoom level shown on the printed screen attached.
I tried customized levels. However, my map's scale is : [1 : 7328171]
which is already covered under the predefined zoom levels 1-20
I am totally confused of why the label layer for roads doesn't show up till a certain zoom level. However, the roads layer is shown at all zoom levels :S
I am terribly in need for a response on that issue
heba,
Thanks for evaluating our product and welcome to our discussion forum where you can be free to ask any question.
- The zoom level determines whether the layers should be shown under current scale range. I think the first issue is caused that the labeled layers are just defined certain zoom level. Please use the code below if you want it to show between zoomLelevel 1 to 20:
ShapeFileFeatureLayer lableLayer = new ShapeFileFeatureLayer(@"shape file path"); lableLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.CreateSimpleTextStyle("CITY_NAME", "Arial", 8, DrawingFontStyles.Italic, GeoColor.StandardColors.Black, 3, 3);
// Here you can set appllied zoomlevel to ZoomLevel20, and then the labeled layers can be shown from zoomlevel 1 to 20
lableLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level05;
A good qiuck start guide can be avaliable at gis.thinkgeo.com/Support/Dis...fault.aspx , which will be helpful.
- The customized zoomlevels is often used when you want to modify the min and max scales of zoomlevels. And the attached is a sample about it.
I’m not sure if I understand you clearly, anything please let me know, thanks.
Johnny
1810-CustomZoomLevelSet.zip (106 KB)