Tag Info

Hot answers tagged

3

you can use the css classes named esriScalebarRuler and esriScalebarRulerBlock I can't find a ruler example to see available css properties on these classes, but if you right click the scale bar and inspect it in the console, look for border styles to set to red, such as: .esriScalebarLabel { color:red !important; } .esriScalebarRuler { border: 2px ...


1

Your line: photos.then(addClusters, error); ... is not calling the photos function. You would have to add parenthesis like this: photos().then(addClusters, error); Note that you can only call .then(...) on a function that returns a deferred, so you may have problems having this code call addClusters too.


1

You have to wait for the map to load before you can interact with it. See http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=graphics_add, or for an updated version of your sample: http://jsfiddle.net/ady51wrn/7/.


1

You are probably going to want to find either a good programmer or start reading and figuring out JS. The basic way to do this would be to either find the feature being snapped to (might be a property of the event) or run a spatial query from the feature you added to find the nearest feature in the other layer (assume distance = 0). I do this in a .NET ...


1

I found out the answer, it was human error. I was using the incorrect "name". Once 'postgis:' was removed the layer was found!


1

Ok, after some hacking around it looks like the parameter c to the _buildLabelText above is actually the fields array of layerDisplay. It looks like the function looks for a match in there (by name) before it'll do any substitutions. If I add this: layerDisplay.fields.push({ alias: "VALUE", length: 10, name: "VALUE", type: ...


1

With a dynamic map service, you can simply request it in a different coordinate system using the spatialreference parameter. Lets assume you already have a map defined in your javascript app, with a spatial reference of 4326 (web mercator), by simply adding the dynamic map service, (with a differing supported spatial reference) it will automatically ...


1

Your basemap issue is giving this error. Mixed Content: The page at 'https://gis.linncounty.org/webapps/gis/parklocator/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json'. This request has been blocked; the content must be served over ...


1

Try to target the contentPane to add background images to the popup. Something like this sample. .contentPane { background: url("//js.arcgis.com/3.14/esri/images/map/logo-med.png"); } Then adjust your no-repeat, repeat-x, repeat-y as needed. MDN resource


1

This seems to be a bug introduced at version 3.14. It seems to work fine with 3.11-3.13.


1

I'm pretty sure the default Print Service can't do this. You may be able to do this via arcpy and a custom print tool. You can see a sample here.


1

you'll need to ensure that an appropriate redirect_uri is specified for the ArcGIS Online item associated with the clientid you are using in the app. http://doc.arcgis.com/en/arcgis-online/share-maps/add- items.htm#ESRI_SECTION3_EA170D63DFBD419D97594A889697FCB0 this is what keeps our platform for passing along tokens associated with logged on users to ...


1

I cobbled together a few chunks of code that should help using the RouteTask suggested by @kes. I took code chunks from this ESRI Geolocation example and this ESRI RouteTask example. My example uses a mouse click to set the destination location, and the geolocation results to set the starting point. You can use these principles to customize the code ...



Only top voted, non community-wiki answers of a minimum length are eligible