POST
|
Users work without the Internet for this reason, I placed the library locally on the server My Web map https://gis.kgp.kz/portal/home/webmap/viewer.html?webmap=0ce4b182600b4ea78afdcda6ec8428e8 My test html https://gis.kgp.kz/test_kz.html
... View more
07-26-2020
08:05 PM
|
0
|
0
|
414
|
POST
|
I want to load maps from my portal <link rel="stylesheet" href="https://gis.kgp.kz/arcgis_js_api/library/4.16/esri/themes/light/main.css" /> <script src="https://gis.kgp.kz/arcgis_js_api/library/4.16/dojo/dojo.js""></script> <script> require([ "https://gis.kgp.kz/arcgis_js_api/library/4.16/esri/portal/PortalItem.js", "https://gis.kgp.kz/arcgis_js_api/library/4.16/esri/views/MapView.js", "https://gis.kgp.kz/arcgis_js_api/library/4.16/esri/WebMap.js" ], function ( PortalItem, MapView, WebMap ) { var portalitem= new PortalItem({ id:"0ce4b182600b4ea78afdcda6ec8428e8", portal:"https://gis.kgp.kz/portal", type:"Web Map" }); var webmap = new WebMap({ portalItem:portalitem }); //console.log(webmap.portalItem+" "+esriConfig.PortalUrl); var view = new MapView({ map: webmap, container: "viewDiv" }); }); </script> I get an error: dojo.js:115 [esri.core.Accessor] Accessor#set Assigning an instance of 'esri.portal.PortalItem' which is not a subclass of 'esri.portal.PortalItem'
... View more
07-24-2020
03:13 AM
|
0
|
2
|
487
|
POST
|
как можно воспроизвести видеопоток онлайн по протоколу rtsp, есть ли стандартные компоненты для портала ?
... View more
03-04-2019
03:29 AM
|
0
|
0
|
280
|
POST
|
My project http://infopublic.pravstat.kz:8399/crime-map/
... View more
02-05-2016
04:59 AM
|
0
|
0
|
269
|
POST
|
if (MyMap.Scale >= 6000000) { ....... } else if (MyMap.Scale <= 6000000 && MyMap.Scale >= 500000) { ......... } else if (MyMap.Scale < 500000) { .................... } http://infopublic.pravstat.kz:8399/crime-map/
... View more
02-05-2016
04:57 AM
|
0
|
0
|
485
|
POST
|
hi all, the problem is this .... I choose the city in a certain scale (1: 200 000), and must be exported into a picture to a scale of 1:10 000 tell me how you can implement
... View more
09-09-2014
08:34 PM
|
0
|
0
|
1628
|
POST
|
how to edit domain (add, edit, delete) via a web browser??? :rolleyes:
... View more
06-19-2014
01:36 AM
|
0
|
0
|
163
|
POST
|
Hi all, I'm using domains, you can edit, add the domains values via silverlight api? thanks
... View more
06-16-2014
04:17 AM
|
0
|
2
|
2652
|
POST
|
You have to set the map extent to null by code like: MyMap.Extent = null; does not help, swears at different spatial reference MyMap.Layers.Clear(); MyMap.Extent = null; ArcGISTiledMapServiceLayer arcgisLayer = new ArcGISTiledMapServiceLayer(); Envelope env = new Envelope(); I realized the error was due to window OverviewMap Thanks
... View more
01-09-2013
02:58 AM
|
0
|
0
|
356
|
POST
|
To change the Spatialreference of a map, you have first to clear all the layers and to set the map extent to null before adding your new layers. I also recommend you to instantiate a new layer each time you change the URL instead of reusing the same one. I have all of your recommendations already made MyMap.Layers.Clear(); ArcGISTiledMapServiceLayer arcgisLayer = new ArcGISTiledMapServiceLayer(); Envelope env = new Envelope();
... View more
01-08-2013
12:32 AM
|
0
|
0
|
356
|
POST
|
What exactly are you having a problem with? From what I can see of what you have pasted is that you never added open street map to the map control. MyMap.Layers.Add(osmLayer); <-- missing different spatial reference is an error in the approximation is not visible layers World_Imagery
... View more
01-02-2013
05:01 PM
|
0
|
0
|
356
|
POST
|
not displayed private void RadioButton_Click(object sender, RoutedEventArgs e) { MyMap.Layers.Clear(); ArcGISTiledMapServiceLayer arcgisLayer = new ArcGISTiledMapServiceLayer(); Envelope env = new Envelope(); switch (((RadioButton)e.OriginalSource).Name) { case "Layer1": arcgisLayer.InitializationFailed += Layer_InitializationFailed; arcgisLayer.Url = "http://myserver/arcgis/rest/services/kz28/MapServer"; arcgisLayer.Initialize(); env = new Envelope(-1176967.4359368654, 4452540.931675468, 1966840.1233924914, 6252256.853320533); env.SpatialReference = new SpatialReference(32642); MyMap.Extent = env; MyMap.Layers.Add(arcgisLayer); break; case "OpenStreesMap": OpenStreetMapLayer osmLayer =new OpenStreetMapLayer(); osmLayer.InitializationFailed += Layer_InitializationFailed; string layerTypeTag = ((RadioButton)e.OriginalSource).Tag as string; osmLayer.Style = OpenStreetMapLayer.MapStyle.Mapnik ; osmLayer.Initialize(); break; case "Layer3": arcgisLayer.Url ="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"; arcgisLayer.InitializationFailed += Layer_InitializationFailed; env = new Envelope(-20037507.2295943, -19971868.8804086, 20037507.2295943, 19971868.8804086); env.SpatialReference = new SpatialReference(102100); MyMap.Extent = env; MyMap.Layers.Add(arcgisLayer); break; } } Thanks
... View more
12-24-2012
05:02 PM
|
0
|
6
|
841
|
POST
|
Take out the initExtent parameter from your layout xml file. You are using you own map service which is in a different spatial reference than the service provided in the HelloWorld sample. If you still want to set the initial extent in your layout xml file, then adjust the coordinates to the spatial reference of your map service. please can show an sample //import android.R.string; import android.app.Activity; import android.content.Context; import android.os.Bundle; import com.esri.android.map.MapView; import com.esri.android.map.ags.ArcGISTiledMapServiceLayer; import com.esri.core.geometry.Envelope; import com.esri.core.geometry.SpatialReference; public class CityActivity extends Activity { MapView mv = null; SpatialReference wgs84 = SpatialReference.create(4326); Context content; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Envelope envelope=new Envelope(-25256, -17337, 28560, 13883); mv=new MapView(content, wgs84, envelope); ArcGISTiledMapServiceLayer Tservice=new ArcGISTiledMapServiceLayer("http://myserver:8000/ArcGIS/rest/services/myservices/MapServer"); //mv.setExtent(envelope); mv.addLayer(Tservice); // setContentView(mv); } @Override does not start(( Thanks
... View more
10-29-2012
08:30 PM
|
0
|
0
|
342
|
POST
|
Hello, I'm just starting to work with android sdk I do everything by example helloworld XML [HTML]<com.esri.android.map.MapView android:id="@+id/map" android:layout_width="fill_parent" android:layout_height="fill_parent" initExtent = "-25256.2258543979 -17337.2451528132 28560.1317783174 13883.6506223117"> </com.esri.android.map.MapView>[/HTML] Java [HTML]public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); map = (MapView)findViewById(R.id.map); // Add dynamic layer to MapView basemap = new ArcGISTiledMapServiceLayer("http://myserver:8000/ArcGIS/rest/services/MyServices/MapServer"); map.addLayer(basemap); } [/HTML] Log: 10-29 11:15:50.520: E/ArcGIS(700): url =http://myserver:8000/ArcGIS/rest/services/MyServices/MapServer 10-29 11:15:50.520: E/ArcGIS(700): java.lang.RuntimeException: Invalid SpatialReference. 10-29 11:15:50.520: E/ArcGIS(700): at com.esri.core.geometry.SpatialReference.nativeGetWKID(Native Method) 10-29 11:15:50.520: E/ArcGIS(700): at com.esri.core.geometry.SpatialReference.create(Unknown Source) 10-29 11:15:50.520: E/ArcGIS(700): at com.esri.core.geometry.SpatialReference.fromJson(Unknown Source) 10-29 11:15:50.520: E/ArcGIS(700): at com.esri.core.internal.c.g.a(Unknown Source) 10-29 11:15:50.520: E/ArcGIS(700): at com.esri.core.internal.a.a.n.b(Unknown Source) 10-29 11:15:50.520: E/ArcGIS(700): at com.esri.android.map.ags.ArcGISTiledMapServiceLayer.initLayer(Unknown Source) 10-29 11:15:50.520: E/ArcGIS(700): at com.esri.android.map.ags.ArcGISTiledMapServiceLayer$1.run(Unknown Source) 10-29 11:15:50.520: E/ArcGIS(700): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442) 10-29 11:15:50.520: E/ArcGIS(700): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) 10-29 11:15:50.520: E/ArcGIS(700): at java.util.concurrent.FutureTask.run(FutureTask.java:137) 10-29 11:15:50.520: E/ArcGIS(700): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) 10-29 11:15:50.520: E/ArcGIS(700): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 10-29 11:15:50.520: E/ArcGIS(700): at java.lang.Thread.run(Thread.java:856) My service is cached and running where and how to to specify parameter SpatialReference [ATTACH=CONFIG]18795[/ATTACH]
... View more
10-29-2012
01:49 AM
|
0
|
3
|
3333
|
POST
|
http://forums.esri.com/Thread.asp?c=158&f=2455&t=297091&mc=2
... View more
02-27-2012
05:20 PM
|
0
|
0
|
99
|
Online Status |
Offline
|
Date Last Visited |
08-06-2021
08:03 AM
|