Tag Info

New answers tagged

0

This task is similar to addressing XSRF/CSRF attack. I believe this could help http://stackoverflow.com/questions/4914994/using-mvc3s-antiforgerytoken-in-http-get-to-avoid-javascript-csrf-vulnerability


0

the first thing that I noticed, is the WidgetManager.getInstance is a function, which means you need to call it using WidgetManager.getInstance() I haven't worked with the web app builder yet, but from what I can tell, the WidgetManager is a Singleton class (the class is created once and used throughout the application). Calling the getInstance function ...


0

You should be be able to use it like you have used GraphicLayer. var drawToolBar = new esri.toolbars.Draw(map, options); Create Buttons using any framework or html, and onclick activate the required tool in draw. couple of things you need to handle is the draw-end to get the geometry from the draw tools. and ensure the map navigation is set to ...


0

here is a fresh new alternative, we are soon releasing cartoserver. this is a GIS web service that is compatible we ArcGIS server Feature Services. You can do a lot of operations online and without having an ArcGIS server or any GI Server installed. It is best used for this type of applications. You can find a sample here ...


0

Use CSS to hide the "Zoom To" link: div.esriPopupWrapper .zoomTo { display: none; } Or set a minScale on your map to limit how far you can zoom in on the map. map = new Map("map", { basemap: "topo", center: [-122.45, 37.75], zoom: 5, maxScale: 15000000 }); Here's a jsbin showing both: http://jsbin.com/qahahi/1/edit


2

If you won't use ArcGIS Online basemaps, then don't add any map of the basemap type. Add Tiled map service and then add Dynamic map service. Add a slider to manage opacity of the top layer. Generally, Esri refers to a basemap as to any reference map that is drawn underneath all other layers and is used for orientation. In terms of JS API, basemaps are Esri ...


0

Depending on how your eGIS and systems are set up you can run a Python job to consume the excel rows on intervals and publish/apply edits as feature or map service. You can use Google also to work with Python if the sheets/rows are to be made public.


2

Options that we have used is to create a list in Microsoft SharePoint that is connected to the database that is being used by the web mapping system. In our case that has been SDE running on MS SQL, but we have also done it connected directly to MS SQL Spatial, and avoiding Esri. This gives the user a non-map based interface that looks like an spreadsheet. ...


0

"Low cost" and "minimum development effort" are relative terms. I recently converted a Silverlight application to use the ESRI JavaScript API. I developed the app in-house so it didn't cost anything other than my salary. However, if you take this approach you will have to take into account your current knowledge of Dojo and AMD as this could impact how much ...


0

You could use a textarea to collect pairs of coordinates. The coordinates should have a comma between them and each pair should be separated by a new line. Then format the pairs to look like: [[[coord1,coord2],[coord3,coord4],[coord5,coord6]]] Here is an example of how to do that: HTML <textarea id='textareaID'></textarea> JavaScript var ...


0

The readyOnly property is not something that can be passed within the object constructor, otherwise it would appear here in the API reference. while technically JavaScript doesn't prevent you from 'setting' any property you like, in the JSAPI some properties are only intended to pass on information to the developer from the service itself. given the ...


0

I think you need to set alwaysUseProxy to true (so it uses your proxy for every request) or include something like this in your viewer.js (you'll also need to require the urlUtils module) so the API knows which services to use the proxy for: esriConfig.defaults.io.proxyUrl = 'relativePathToYourProxy/proxy.ashx'; var serversToProxy = [ ...


1

From the documentation javascript api: basemap Optional Specify a basemap for the map. The following are valid options: "streets" , "satellite" , "hybrid", "topo", "gray", "dark-gray", "oceans", "national-geographic", "terrain" and "osm". Property added at v3.3. The "terrain" and "dark-gray" options added at v3.12. You only need to put in the code ...


2

You could loop through map.layerIds to obtain the id of each layer already in the map and compare the id values directly. Or compare a distinctive property (like the url) to the layer you intend to add. To get that property, you would first call the method map.getLayer() to get the layer, then you can access the the url property. var existingLayer = ...


0

I found the answer that I think may help other people trying to accomplish this as well. The code below shows how to make a Custom Basemap Gallery using your own Basemaps (not ArcGIS maps). In this case, it will create two basemaps for a single gallery. <script> dojo.require("esri.map"); dojo.require("dijit.form.Button"); ...


1

As noted in the API reference, the measurement widget does not make event listeners available for the placement of individual nodes. that being said, our new geometryEngine can help you do calculations like this entirely on the clientside. i was able to whip up a simple sample in which i listen for both map 'click' and 'mouse-move' and create new polylines ...


0

as stated in the API reference, support for 'suggestions' or 'autocomplete' specifically is what requires the pagination support that was introduced in ArcGIS Server 10.3 and also available in ArcGIS Online hosted feature services. API Reference - Search Widget https://developers.arcgis.com/javascript/jsapi/search-amd.html#enablesuggestions if you're ...


2

If I am understanding you correctly, this funnctionality already exists in my Search widget which is a companion to my Attributes Tables widget.


0

Short answer: No, the native ESRI JS API for representing a graphic permits only one symbol type at a time. In my applications, I use the same compromised solutions as you. You could look into extending the base Graphic class to add a second symbol or use a graphics packages like RaphaelJS to modify the symbol post-creation but of course that would not ...


0

I am currently working with something similar, but I first set graphics for each feature in the featureSet and then add the graphics layer to the map (with map.graphics.add()), then iterate through the completed graphics array to get the union extent of its elements, using layer.graphics[i].geometry,getExtent(), then extent.union(ext), and finally ...


1

Sorry for my english. I tried to adjust for yourself. You need to edit the file Controller.js. In section initLayer you must add the following at the end: if (layer.options.renderer_url != undefined && layer.options.renderer_url != '') { require([layer.options.renderer_url], function () { l.setRenderer(renderer); }) }; In ...


0

as noted in the API reference for [Search](https://developers.arcgis.com/javascript/jsapi/search-amd.html#enablesuggestions': "available if working with a 10.3 geocoding service that has suggest capability loaded or a 10.3 feature layer that supports pagination, i.e. supportsPagination = true." this means you need with a Feature Service published to ...


0

in order to implement a 'mouseover' event listener, you would need a reference to an actual graphic (JSON describing the geometry and attributes of the feature of interest) within your client app.


4

esri leaflet is an alternative to the ArcGIS API for JavaScript, not something that makes much sense to try and combine. L.esri.DynamicMapLayer provides comparable functionality (within Leaflet) for loading dynamic map services published to ArcGIS Server to the class 'esri/layers/ArcGISDynamicMapServiceLayer' in the JSAPI please check out the esri leaflet ...


1

The problem was that I was calculating the angle for the marker symbol variable, rather than each instance of the symbol added to the graphics array. I changed the loop where the graphics are added, so that each new addition created a new instance of the marker symbol with its own angle calculated. Now the orientation of the symbol stays consistent.


1

You only have one table in the configuration with two of each property (title, queryOptions, etc). The effective result is that only the second property with the same name is evaluated and used. To fix this, you need to add a closing curly brace } to end the configuration object for the first table followed by a comma. Then an opening curly brace { is ...



Top 50 recent answers are included