Silverlight to Javascript API -


i started move esri web mapping application silverlight javascript api.i dont know java. silverlight issues pushing me go javascript api. without cannot move.

i wanted map display in java. rest code need write vb.net.

i added dynamic map through javascript api successfully. write other code in vb.net. trying code behind below

imports esri.arcgis.client partial class default2     inherits system.web.ui.page     protected sub button1_click(sender object, e eventargs) handles button1.click          dim displayextent new esri.arcgis.client.geometry.envelope(23, 34, 33, 44)         dynamicmapservicelayer.zoomto(displayextent)     end sub end class 

here getting error below. how can solve this?

error 11 reference required assembly 'system.windows, version=2.0.5.0, culture=neutral, publickeytoken=7cec85d7bea7798e' containing base class 'system.windows.dependencyobject'. add 1 project.

my default.aspx page design below

<%@ page language="vb" autoeventwireup="false" codefile="default2.aspx.vb" inherits="default2" %> <!doctype html> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="head1" runat="server">     <title></title> </head> <body>     <form id="form1" runat="server">     <div>             <asp:button id="button1" runat="server" text="button" />         </div>     </form> </body> </html> <html>   <head>     <meta http-equiv="content-type" content="text/html; charset=utf-8">     <!--the viewport meta tag used improve presentation , behavior of samples       on ios devices-->     <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">     <title>create map , add dynamic layer</title>     <link rel="stylesheet" href="http://js.arcgis.com/3.14/esri/css/esri.css"/>     <style>       html, body, #mapdiv{         padding: 0;         margin: 0;         height: 100%;       }     </style>     <script src="http://js.arcgis.com/3.14/"></script>     <script>         var map;         require([           "esri/map",           "esri/layers/arcgisdynamicmapservicelayer",           "esri/layers/imageparameters"         ], function (           map, arcgisdynamicmapservicelayer, imageparameters) {              map = new map("mapdiv", {                 sliderorientation: "horizontal"             });              var imageparameters = new imageparameters();             imageparameters.format = "jpeg"; //set image type png24, note default png8.              //takes url non cached map service.             var dynamicmapservicelayer = new arcgisdynamicmapservicelayer("http://sampleserver1.arcgisonline.com/arcgis/rest/services/demographics/esri_population_world/mapserver", {                 "opacity": 0.5,                 "imageparameters": imageparameters             });              map.addlayer(dynamicmapservicelayer);         });     </script>   </head>   <body>     <div id="mapdiv"></div>   </body> </html> 


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -