Remove LabelLayer

Topics: SharpMap v0.9 / v1.x
Jan 27, 2010 at 8:20 PM

hi guys

 

i'm currently working in a website using sharpmap v0.9

 

i'm trying to remove a LabelLayer using a checkbox on a page but nothing happened when i do that

 

i have another vector layers and i did the same to it and it's working fine for me

 

 

and help is appreciated

 

thx in advance

Coordinator
Jan 28, 2010 at 9:46 AM

Hi snix, are you using the ajax control or the simple one?

Is the handler being called and if so is the LabelLayer still present on it when it renders?

You may need to add a random string to the end of the image url to force the browser to download a new version rather than reusing a cached one..

hth jd

Jan 28, 2010 at 10:15 AM
Edited Jan 28, 2010 at 10:17 AM
johndiss wrote:

are you using the ajax control or the simple one?

the simple one

 

johndiss wrote:

Is the handler being called and if so is the LabelLayer still present on it when it renders?

the handler is called.. the problem that i can't deal with any label layer,, adding or removing im failed

 

if the layer is shown it'll never removed if i checked or uncheck the box

and if it's not  visible the same .. i can't make it visible

johndiss wrote:

You may need to add a random string to the end of the image url to force the browser to download a new version rather than reusing a cached one..

how can i do that ?

 

i tried to do this but the same problem keep appear

 

imgMap.ImageUrl = "getmap.aspx?ID=" + HttpUtility.UrlEncode(imgID) + "&Rand=" + random.Next(100);

 

Jan 29, 2010 at 11:02 AM

any help pleaaaaaaaaaaaaaaaaaase :(