-- W. Adam Brightwell Software Engineer, MTCSC Certified Scrum Master Email: wbrightwell_at_mtcsc.com DCO: william.brightwell_at_chat.dco.dod.mil Office: 843-856-1935/1985 x51632 Cell: 843-810-8701 > From: "Kacirek, Benjamin P Mr CIV USA OSA" <ben.kacirek_at_us.army.mil> > Date: Thu, 6 Jan 2011 10:53:02 -0600 > To: William Brightwell <wbrightwell_at_mtcsc.com>, <openmap-users_at_bbn.com> > Subject: RE: [OpenMap Users] Setting minimum scale for open map (UNCLASSIFIED) > > Classification: UNCLASSIFIED > Caveats: NONE > > The first one is true actually. I am trying to restrict the map from > "zooming" past a particular scale. Like I said right now the map stops at > 1:500. I want to set that number higher like 1:30000 and have "zooming" stop > there. > > -----Original Message----- > From: Brightwell, William [mailto:wbrightwell_at_mtcsc.com] > Sent: Thursday, January 06, 2011 10:39 AM > To: Kacirek, Benjamin P CIV US USA TRADOC; openmap-users_at_bbn.com > Subject: Re: [OpenMap Users] Setting minimum scale for open map > (UNCLASSIFIED) > > Ben, > > Are you trying to restrict the map from "zooming" to a particular scale? Or > are you wanting to restrict a particular layer from rendering/generating at > or past a particular scale? > > If the second is true, you can override the layer's "generate" method and > get the scale from the projection and limit there... Something like this... > > if (proj.getScale() > minScale) { > super.generate(proj); > } > > The same would suffice for a custom layer as well. Hope this helps. > > -Adam > > > -- > W. Adam Brightwell > Software Engineer, MTCSC > Certified Scrum Master > > Email: wbrightwell_at_mtcsc.com > DCO: william.brightwell_at_chat.dco.dod.mil > Office: 843-856-1935/1985 x51632 > Cell: 843-810-8701 > > > >> From: "Kacirek, Benjamin P CIV US USA TRADOC" >> <ben.kacirek_at_us.army.mil> >> Date: Thu, 6 Jan 2011 10:13:48 -0600 >> To: <openmap-users_at_bbn.com> >> Subject: [OpenMap Users] Setting minimum scale for open map >> (UNCLASSIFIED) >> >> Classification: UNCLASSIFIED >> Caveats: NONE >> >> I am trying to set the minimum scale for openmap. Right now when I >> scroll in using the mouse wheel the scale stops at 1:500. The minimum >> scale needs to be higher for my needs. I was hoping to set the minimum >> scale in the openmap.properties but I could not find any documentation >> on how to do so. Can this be done in the openmap.properties file? For >> example, I tried layerName.minscale = 3000 and layerName.min.scale = >> 3000 but neither worked in the file. Any info is appreciated. >> >> Thanks, >> >> Ben >> >> Classification: UNCLASSIFIED >> Caveats: NONE >> >> >> -- >> [To unsubscribe to this list send an email to "majdart_at_bbn.com" >> with the following text in the BODY of the message "unsubscribe >> openmap-users"] > > Classification: UNCLASSIFIED > Caveats: NONE > > > -- [To unsubscribe to this list send an email to "majdart_at_bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Thu Jan 06 2011 - 12:18:58 EST
This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:10 EDT