[mapserver-users] Reg:- Not able to show KeyMap on main page

Tamas Szekeres szekerest at gmail.com
Wed May 21 08:26:54 PDT 2008


Venkat,

I'm pretty sure that ReferenceImg.ToString(); won't return the content
of the image. Instead you might want to create a separate aspx/ashx
and use Response.BinaryWrite to return the contents of the image and
assign the URL of this page to  imgOver.ImageUrl. Alternatively you
could save the image as a file at the server and use the URL to this
file in imgOver.ImageUrl.

Best regards,

Tamas


2008/5/21 venkat <ven.tammineni at gmail.com>:
> Dear All,
>
>   I am Venkat,I am developing an web application.In that One of the task is
> Keymap(Overviewmap).I am using C# asp.net .I can able to compile my code and
> when i debug image path everything  is correct it seems.But I am not able to
> see keymap on my page.Even i am not getting error. I am sending
> attachment.Anyone  can help me.
>
> 1) C# code :-
>             referenceMapObj referenceMap = map.reference;
>             imageObj ReferenceImg = map.drawReferenceMap();
>             imgOver.ImageUrl = ReferenceImg.ToString(); //image button iam
> trying to show map on imagebutton(is there any otherway?)
>
> 2) Mapfile Code
>
> WEB
>    imagepath "C:\Inetpub\wwwroot\RoulacGIS\MapFile\tmp"
>    imageurl "C:\Inetpub\wwwroot\RoulacGIS\MapFile\tmp"
> END
>
> REFERENCE
>    IMAGE "C:\Inetpub\wwwroot\RoulacGIS\MapFile\tmp\KeyMap.png"
>    EXTENT -180 -90 180 90
>    STATUS ON
>   COLOR -1 -1 -1
>   OUTLINECOLOR 255 0 0
>   SIZE 120 90
> END
>
>
> I am waiting for great response.
> Advanced Thanks.
>
>
>
> Thanks and Regards
> Venkat.
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>



More information about the MapServer-users mailing list