POST
|
Hi, I want to import arcgis-js-api 3.18 in my project which created as Asp.Net Core empty project. I am using angular2 with typescript in my project. Also want to add and use arcgis-js-api 3.18 but i am having an error like "System import error: Error: (SystemJS) esri_mods_1.Map is not a function". The details at the below and please help me. I can use arcgis-js-api 4.1 version as successfuly but with 3.18 i am having trouble I have already added "esriSystem.js" and "arcgis-js-api 3.18 version" referenced in my index.html this is the my esri modules which are i am trying to load (function (window) { window.esriLoadConfig = { modules: [ 'esri/map', "esri/layers/MapImageLayer" ] }; }(window)) i have olsa esri-mod.d.ts file and content of it at the below /// <reference path="../../node_modules/@types/arcgis-js-api/index.d.ts" /> declare module "esri-mods" { export import Map = require("esri/map"); export import MapImageLayer = require("esri/layers/MapImageLayer"); } in my main.ts file i am using these modules like /// <reference path="../../typings/index.d.ts" /> import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app.module'; import { Map } from 'esri-mods'; const platform = platformBrowserDynamic(); platform.bootstrapModule(AppModule); var mymap = new Map("map");//error when i build my project is succesfully. But at the run time i am getting the error when bold-italic line is being process this is also error message in chrome console window System import error: Error: (SystemJS) esri_mods_1.Map is not a function TypeError: esri_mods_1.Map is not a function at Object.eval (http://localhost:51032/app/main.js:8:13) at eval (http://localhost:51032/app/main.js:13:4) at eval (http://localhost:51032/app/main.js:14:3) at eval (native) Evaluating http://localhost:51032/app/main.js Error loading http://localhost:51032/app/main.js
... View more
11-16-2016
11:00 AM
|
0
|
0
|
517
|
POST
|
Hi, unfortunately i couldnt find any solution. i had to use arcgis api for silverlight 3.0 at last. maybe it can be a bug. because anyone couldnt reply this thread.
... View more
10-04-2013
05:48 AM
|
0
|
0
|
225
|
POST
|
hi, i am trying to export map image using printing tool services. but i dont want to see my map legend in the map image. because of that i put my printing task parameters the code which is at the below. LayoutOptions = new LayoutOptions() { LegendOptions = new LegendOptions() { LegendLayers = new List<ESRI.ArcGIS.Client.Printing.LegendLayer>() } } the problem is that if i use this export tool in the same domain with my printing tool service it works. but if i use it from different domain it doesnT work. when i check the my requests i saw that if i put legendoptions to my print task parameters my request is using GET method. but if i donT put this parameter my request is using POST method. if i am using this parameters wrong how should i get map image withoud legend view? or if i am using this parameter right do i need to make my request using POST method? if it is yes how can i use POST method while i am reques printing tool services. best regards mehmet ali y�ld�z
... View more
07-25-2013
04:32 AM
|
0
|
0
|
1678
|
POST
|
hi, i have an application that i developped using javascript api. in my application i am querying some data from rest services. my queries uses "IN" keyword in my where condition. (it is includes generaly 40 items) my query work ok in explorer and chrome. bur in mozilla i get timeout error. what can be the problem? thanks for your helps
... View more
07-24-2013
12:19 AM
|
0
|
0
|
319
|
POST
|
Hi, I am trying to snap when i drawing a polyline. But when i execute the editor in my code first time i need to click somewhere in the map than second time i can snap. But i need to snap at first click. this problem occured when i update my project from arcgis api for silverlight 3.0 to arcgis api for silverlight 3.1. This change came with silverlight api 3.1. but what should i do for snapping at the first clikc?
... View more
07-04-2013
12:27 AM
|
0
|
3
|
606
|
POST
|
Hi, I have an id list that its types are guid. And i am using these ids in my query like below string whereClause = string.Empty; foreach (var feature in featureSet) { if (feature.Attributes[id] != null) { if (idList != string.Empty) { if (!idList.Contains(feature.Attributes[id].ToString().ToUpper())) idList += "'{" + feature.Attributes[id].ToString().ToUpper() + "}',"; } else idList += "'{" + feature.Attributes[id].ToString().ToUpper() + "}',"; } } if (idList != string.Empty) idList = idList.Substring(0, idList.Length - 1); whereClause = wayid+ " IN (" + idList + ")"; with this whereClause i can query succesfully in internetexplorer. But when i try it in mozilla my querytask returns null. And i tried shorter whereClause in mozilla and i could query succesfuly. What should i do for querying with long whereclause espacially using in method. Any Idea? best regards
... View more
05-08-2013
11:09 PM
|
0
|
0
|
497
|
POST
|
Thanx you jgravois for your answer. i should prapare a proxy page :). i got it.
... View more
03-19-2013
11:53 PM
|
0
|
0
|
425
|
POST
|
Thanx jgravois for your reply; Soo i need to use proxy. But i want to ask a question. Proxy is only needed for security isn't it? I mean if my request is included too large query strings is that a security problem? Also want to ask that if i want to use proxy do i need to some changes on my mapservers or feature servers. Best Regards
... View more
03-19-2013
08:09 AM
|
0
|
0
|
425
|
POST
|
Hi, i am developping a basic application in javascript. In my application i am using querytask. But problem is that my whereclause is too big. for example whereclause is like id in (id1,id2,id3,......,...,id200). So when i trying to query with this wherelcause even the request doesnt start. I searched on internet a little bit and everybody says that i need to use post method in my requests. But how can i use post methods. or if you know another solutions could you help me please? Best Regards mayildiz
... View more
03-18-2013
11:40 PM
|
0
|
4
|
1673
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|