ThinkGeo.com    |     Documentation    |     Premium Support

About MapSuite CurrentExtent

Hi @Ethan
I create a MapSuite control, when i use xmal to create it and set CurrentExtent MapControl.CurrentExtent = new RectangleShape(73.0476, 53.804,135.4417, 17.7516). it’s show fine.


but when i create it use background code like this
MapControl = new WpfMap();
MapControl.MapUnit = GeographyUnit.DecimalDegree;
MapControl.CurrentExtent = new RectangleShape(73.0476, 53.804,135.4417, 17.7516);
it’s show not fine.

Now i need create map control background,how can i do?

Regards,
ZhangMing

Hi Zhangming,

It looks you hadn’t set all the parameters for the map control for example width, height etc.

Please set all the parameter for the map control div so it can render correct, your map rendered in the left-upper corner.

If that still don’t works, please build a simple sample and update here, so our developer can quickly look into it.

You can build the sample by template: http://wiki.thinkgeo.com/wiki/map_suite_project_template_guide

Regards,

Ethan

Hi Zhangming,

Any question please let us know.

Regards,

Ethan