FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SharpMap/SharpMap.Server/Demo.aspx at main · SharpMap/SharpMap · GitHub
SharpMap
SharpMap
Repository navigation
Code
Issues
42
(42)
Pull requests
6
(6)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
SharpMap
/
SharpMap.Server
/
Demo.aspx
Copy path
More file actions
More file actions
Latest commit
History
History
History
50 lines (48 loc) · 2.3 KB
Breadcrumbs
SharpMap
/
SharpMap.Server
/
Demo.aspx
Copy path
File metadata and controls
50 lines (48 loc) · 2.3 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<
%@ Page Languag
e
=
"C
#
" AutoEventWireu
p
=
"tru
e
" CodeBehin
d
=
"Demo.aspx.c
s
" Inherit
s
=
"SharpMapServer.Dem
o
"
%
>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<
html
>
<
head
>
<
title
>SharpMapServer Demo</
title
>
<
link
rel
=
"
Stylesheet
"
type
=
"
text/css
"
href
=
"
css/openlayers.css
"
/>
<
script
type
=
"
text/javascript
"
src
=
"
js/OpenLayers.js
"
></
script
>
<
script
language
=
"
javascript
"
type
=
"
text/javascript
"
src
=
"
js/jquery-1.6.4.js
"
></
script
>
<
script
type
=
"
text/javascript
"
>
var
parameters
=
<
%=
parameters
%
>
var
map;
var
layer;
$
(
window
).
ready
(
function
() {
OpenLayers
.
ImgPath
=
'
images/
'
;
var
mapOpts
=
{
projection
:
parameters
.
projection
,
maxExtent
:
new
OpenLayers.Bounds
(
parameters
.
maxExtent
[
0
],
parameters
.
maxExtent
[
1
],
parameters
.
maxExtent
[
2
],
parameters
.
maxExtent
[
3
])
};
map
=
new
OpenLayers.Map
(
'
map
'
, mapOpts);
layer
=
new
OpenLayers.Layer.WMS
(
'
WMS
'
,
'
wms?
'
, { layers
:
'
<%= layerName %>
'
, version
:
'
1.3.0
'
,format
:
"
image/png
"
}, {singleTile
:
true
, yx
:
[]});
map
.
addLayer
(layer);
map
.
zoomToMaxExtent
();
});
function
updatetiled
()
{
if
(
$
(
"
input[@name=tiled]:checked
"
).
attr
(
'
id
'
)
==
"
single
"
)
{
map
.
removeLayer
(layer);
layer
=
new
OpenLayers.Layer.WMS
(
'
WMS
'
,
'
wms?
'
, { layers
:
'
<%= layerName %>
'
, version
:
'
1.3.0
'
,format
:
"
image/png
"
}, {singleTile
:
true
, yx
:
[]});
map
.
addLayer
(layer);
}
else
{
map
.
removeLayer
(layer);
layer
=
new
OpenLayers.Layer.WMS
(
'
WMS
'
,
'
wms?
'
, { layers
:
'
<%= layerName %>
'
, version
:
'
1.3.0
'
,format
:
"
image/png
"
}, {singleTile
:
false
, yx
:
[]});
map
.
addLayer
(layer);
}
}
</
script
>
</
head
>
<
body
>
<
img
src
=
"
images/SharpMapBanner.png
"
/>
<
h1
>Demo of
<%=
layerName
%>
</
h1
>
<
div
id
=
"
map
"
style
=
"
width
:
640
px
;
height
:
480
px
"
>
</
div
>
<
input
type
=
"
radio
"
id
=
"
single
"
name
=
"
tiled
"
checked
=
"
checked
"
value
=
"
SingleTile
"
onclick
=
"
updatetiled()
"
/> Single Tile | <
input
type
=
"
radio
"
name
=
"
tiled
"
value
=
"
Tiled
"
onclick
=
"
updatetiled()
"
/> Tiled
</
body
>
</
html
>
Back
|
FazBrowse Home
|
New Git URL