|
POST
|
The ampersand (&) and angle bracket (<) are special characters and will interfere with the formatting tags. You have to replace them with code similar to this:
Function FindLabel ([LABELFIELD])
NewString = Replace([LABELFIELD],"&","&")
FindLabel = "<ITA>" & NewString & "</ITA>"
End Function
See the help page on formatting tags
... View more
04-19-2013
05:44 AM
|
0
|
0
|
2788
|
|
POST
|
You can use the Insert method on the featureclass. Some examples of how to use this can be found here and herehttp://resources.esri.com/help/9.3/arcgisengine/arcobjects/esriGeoDatabase/IFeatureClass.Update_Example.htm.
... View more
04-19-2013
05:04 AM
|
0
|
0
|
1621
|
|
POST
|
A better question would be why aren't there any redirects from an old page to its corresponding page on the new site?
... View more
04-18-2013
12:34 PM
|
0
|
0
|
2055
|
|
POST
|
You can clear the featureselection after zooming to the feature or, instead of using IFeatureSelection, use ISelectionSet to search for a particular parcel.
... View more
04-18-2013
05:30 AM
|
0
|
0
|
2356
|
|
POST
|
What you'll need to do is the zoom to the extent of the feature you've selected. Try this after you've created the variable pFeature
pFeature = pFCursor.NextFeature
Dim pEnvelope as IEnvelope
If Not pFeature Is Nothing Then
pEnvelope = pfeature.Extent
' back out a little from the extent of the feature
' comment out or remove next line if not wanted
pEnvelope.Expand 0.5, 0.5, False
pActiveView.Extent = pEnvelope
pActiveView.Refresh
End If
... View more
04-17-2013
09:48 AM
|
0
|
0
|
2356
|
|
POST
|
Have you seen the Esri snippet "Create JPEG from ActiveView"?
... View more
04-15-2013
11:58 AM
|
0
|
0
|
2356
|
|
POST
|
When I add the 3.4 code assist plugin into VS 2012, I am now getting the error "Build cancelled due to JSLint validation errors." If I remove the plugin, the project starts correctly. If I right click on the file and choose "Skip on build" the project runs correctly.
... View more
04-15-2013
06:41 AM
|
0
|
0
|
902
|
|
POST
|
I ended up using a loading icon, taken from the Show loading icon sample. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" /> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no" /> <title>SEFCRI Data View</title> <link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/dojo/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/esri/css/esri.css"> <link rel="Stylesheet" type="text/css" href="css/style.css" /> <style> html, body { height: 100%; width: 100%; margin: 0; padding: 0px; font-family: helvetica, arial, sans-serif; font-size: 90%; } #leftPane { width: 280px; overflow: auto; } /* this line hide layers when out of scale for the inline TOC */ #scaleDiv .agsTOCOutOfScale { display: none; } </style> <script type="text/javascript"> var djConfig = { parseOnLoad: true, packages: [{ "name": "agsjs", "location": location.pathname.replace(/\/[^/]+$/, "") + '/agsjs' // "location": location.pathname.replace(/\/[^/]+$/, "")+'/../build/agsjs' //"location": 'http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.02/xbuild/agsjs' // for xdomain load }] }; </script> <!--<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.0">--> <script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/"></script> </script> <script type="text/javascript"> // //dojo.require("dijit.dijit"); dojo.require("dijit.layout.BorderContainer"); dojo.require("dijit.layout.ContentPane"); // uncomment if want dojo widget style checkbox //dojo.require('dijit.form.CheckBox'); dojo.require("esri.map"); dojo.require("dijit.layout.AccordionContainer"); dojo.require("dojo.fx"); // needed if use jsapi 3.0 dojo.require("agsjs.dijit.TOC"); </script> <script type="text/javascript"> var map; function init() { map = new esri.Map("map", { showAttribution: false }); loading = dojo.byId("loadingImg"); //Add the terrain service to the map. View the ArcGIS Online site for services http://arcgisonline/home/search.html?t=content&f=typekeywords:service var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"); map.addLayer(basemap); var layerSEFCRI = new esri.layers.ArcGISDynamicMapServiceLayer("http://egisws02.nos.noaa.gov/ArcGIS/rest/services/biogeo/SEFCRI/MapServer", { id: 'SEFCRI' }); dojo.connect(map, 'onLayersAddResult', function (results) { var toc = new agsjs.dijit.TOC({ map: map, layerInfos: [{ layer: layerSEFCRI, title: "SEFCRI", slider: true }] }, 'tocDiv'); toc.startup(); layerSEFCRI.setVisibleLayers([0]); }); map.addLayers([layerSEFCRI]); //document.body.style.cursor = "wait"; esri.show(loading); dojo.connect(layerSEFCRI, "onLoad", function () { map.setExtent(layerSEFCRI.initialExtent, true); //document.body.style.cursor = "default"; esri.hide(loading); }); dojo.connect(layerSEFCRI, "onUpdateStart", function () { //document.body.style.cursor = "wait"; esri.show(loading); }); dojo.connect(layerSEFCRI, "onUpdateEnd", function (error) { //document.body.style.cursor = "default"; esri.hide(loading); if (error) { alert("Updated completed with error: " & error); } }); //resize the map when the browser resizes - view the 'Resizing and repositioning the map' section in //the following help topic for more details http://help.esri.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_guidelines.htm var resizeTimer; dojo.connect(map, 'onLoad', function (theMap) { dojo.connect(dijit.byId('map'), 'resize', function () { //resize the map if the div is resized clearTimeout(resizeTimer); resizeTimer = setTimeout(function () { map.resize(); map.reposition(); }, 500); }); }); } dojo.addOnLoad(init); </script> </head> <body class="claro"> <div id="content" dojotype="dijit.layout.BorderContainer" design="headline" gutters="true" style="width: 100%; height: 100%; margin: 0;"> <div dojotype="dijit.layout.ContentPane" id="leftPane" region="left" splitter="true"> <div id="tocDiv"> </div> </div> <div id="map" dojotype="dijit.layout.ContentPane" region="center"> <img id="loadingImg" src="assets/images/loading.gif" class="centered" alt="" style="position: relative; top: 50%; left: 50%; margin-top: -16px; margin-left: -16px; z-index: 100" /> </div> </div> </body> </html>
... View more
04-10-2013
07:40 AM
|
0
|
0
|
810
|
|
POST
|
You can download all the samples in the 3.3 SDK available here. Unfortunately, I'm a new convert to JavaScript, so I can't help you with your dojo warning question.
... View more
04-09-2013
12:59 PM
|
0
|
0
|
4613
|
|
POST
|
Have you downloaded the code assist plugin from here? Hopefully the 3.4 version will be available soon.
... View more
04-09-2013
12:22 PM
|
0
|
0
|
4613
|
|
POST
|
I understand I always make the right comment. I will definitely be more attentive to my comments. Thanks to you both for continuing to teach me the rules and ways of the forum and of VBA. I will most certainly use the post icons. And yet you mark your own post as the correct answer? I think you need to reread that blog. With my status as a forum moderator (obtained by having users mark my posts as the correct answer when appropriate), I have gone ahead and changed the correct answer indicator since you are unwilling to do that.
... View more
04-09-2013
07:14 AM
|
0
|
0
|
2103
|
|
POST
|
I ended up getting the first helpful post in this thread and I didn't even do anything - my guilt will set in later today I'm sure. No need for guilt, Leo...that was me marking it as helpful 🙂
... View more
04-09-2013
06:39 AM
|
1
|
0
|
2103
|
|
POST
|
What Leo meant was to start marking which posts were helpful and which one actually answered your question. You often mark your own posts as the correct answer, but rarely do that for other contributors. This doesn't encourage people to help you out very much. Please take a look at the Esri blog post on the MVP program. Note the following: Any logged in user can use the �??arrow�?� icons on the far right to vote for any of the replies on any threads if they believe that reply contains useful information. Users may vote for more than one reply in a thread. This voting tool allows the ArcGIS user community as a whole to collectively bubble the best replies to the top of the thread. This does two things: It allows other users later to find the most useful information most quickly without necessarily reading all of the posts in the thread. It rewards the reply�??s author with points that contribute to their status within the community, allowing other users to identify the most helpful members of the community, building trust and encouraging collaboration.
... View more
04-09-2013
06:32 AM
|
1
|
0
|
2103
|
|
POST
|
Do you know when the code assist plugs will be available for 3.4?
... View more
04-09-2013
06:24 AM
|
0
|
0
|
2520
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-04-2025 06:39 AM | |
| 1 | 05-01-2026 08:26 AM | |
| 1 | 04-10-2026 12:01 PM | |
| 1 | 04-13-2026 09:11 AM | |
| 1 | 10-11-2023 06:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|