Mapbx.refresh() does not work

Topics: SharpMap v0.9 / v1.x
Jun 1 at 4:00 AM
Hi,
I have a problem using sharpmap and sqlserver provider. the problem is when it loads I can not see any thing and I mush zoom once on map and map appeares.
I called Mapbox.refresh but it did not show any thing..Are there any method to do this?
Even when I add a layer to map I should zoom once or pan to see it..
Jun 7 at 4:43 AM
Does any one has this kind of problems?
Coordinator
Jun 8 at 7:05 AM
Are you adding all layers to the default MapBox.Map? Try setting up a map and assign that to the MapBox.
Jun 8 at 10:50 AM
FObermaier wrote:
Are you adding all layers to the default MapBox.Map? Try setting up a map and assign that to the MapBox.
thank you so much.In fact I setup a map and assign it map box and then I try to add layers to Mapbox.Map object..Does this causes this problem?Is there any refresh() method for it?
Coordinator
Jun 9 at 6:14 AM
Can you try adding the map after you added the layers
Jun 10 at 11:25 AM
FObermaier wrote:
Can you try adding the map after you added the layers
thanks ..I'll try it and let you know about the results