|
POST
|
YEs thats totally it. You need to register for a new google key for your production server webgis.entrix.com For example, i have 4 seperate keys, localhost, internal development server, internal production server, public production server. I then use a scriptlet to set the key in my html based on the hostname Actually check that, v3 api no longer requires a key https://developers.google.com/maps/signup maybe just try removing it?
... View more
07-12-2012
04:03 AM
|
0
|
0
|
2438
|
|
POST
|
Jeff, thanks for the suggestion. I tried that awhile back using a copy of the same data projected as Web Mercator Auxiliary Sphere. Here's the live version and the code below. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<title>ArcGIS JavaScript Extension for the Google Maps API Example</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<script src="http://maps.google.com/maps?file=api&v=3&key=AIzaSyDZlBLE1DNYj8IgCIP4JzkEVs8bclKfr90" type="text/javascript"></script>
<script src="http://serverapi.arcgisonline.com/jsapi/gmaps/?v=1.6" type="text/javascript" ></script>
<script type="text/javascript">
var gmap = null;
function initialize() {
gmap = new GMap2(document.getElementById("gmap"));
var centerat = new GLatLng(28,-82.5);
gmap.addControl(new GLargeMapControl());
gmap.addControl(new GMapTypeControl());
gmap.setCenter(centerat, 10);
var dynamicMap = new esri.arcgis.gmaps.DynamicMapServiceLayer("http://map.entrix.com/ArcGIS/rest/services/Misc/RiverviewOfficePointsWebMerc/MapServer", null, 1.0, dynmapcallback);
}
function dynmapcallback(mapservicelayer) {
gmap.addOverlay(mapservicelayer);
}
</script>
</head>
<body onload="initialize();" onunload="GUnload();">
<div id="gmap" style="width: 500px; height:500px;"></div>
</body>
</html> Still does not show the map service. Another clue from ESRI is shown in the following screen shot. When they tried to generate a token using the username and password I gave them on my ArcGIS Server, it apparently tries to find the map service using the internal hostname rather than the fully qualified URL. I think this is the problem! However I don't know what setting I need to adjust in ArcGIS Server configuration. YEs thats totally it. You need to register for a new google key for your production server webgis.entrix.com For example, i have 4 seperate keys, localhost, internal development server, internal production server, public production server. I then use a scriptlet to set the key in my html based on the hostname
... View more
07-12-2012
04:01 AM
|
0
|
0
|
2438
|
|
POST
|
So, if one simply references the "Hosted Version" of the ArcGIS API for Javascript, as discussed below (taken from the online Help), does this prevent the need to download and install the API on the web server machine? Welcome! You absolutely do not need to download if you use the hosted api!
... View more
07-11-2012
11:57 AM
|
0
|
0
|
1251
|
|
POST
|
I think you need to use a web merc aux sphere service (not wgs84) to overlay. Check out the coordinate system of the working sample.
... View more
07-11-2012
11:20 AM
|
0
|
0
|
2438
|
|
POST
|
Also try the built in javascript viewer in the rest endpoint and make sure it is working.
... View more
07-11-2012
08:44 AM
|
0
|
0
|
1532
|
|
POST
|
you can no longer run files locally, must be run off a webserver.
... View more
07-11-2012
08:20 AM
|
0
|
0
|
2252
|
|
POST
|
Assuming you are talking about downloading the "Javascript" ArcGIS API, you can find instructions for that in the API documentation: http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jshelp_start.htm > Concepts > Getting Started > Get the ArcGIS API for Javascript But if you are looking to dissect it you may find it difficult since the code is obfuscated. I have had to look at the api once or twice just to see what the hidden functions were or what variables are being passed, but it you want to see how a function works, you are right, no way to see it.
... View more
07-11-2012
04:47 AM
|
0
|
0
|
1046
|
|
POST
|
I'm extending the "Add Shapefile" example to allow the user to select a column from the shapefile by which to set the symbology of the layer added... Taking a featureCollection, extracting field names to populate a dijit.form.ComboBox: This part works:
function populateColumnDropDown(featureCollection){
names = featureCollection.layers[0].layerDefinition.fields;
var fieldNames = [];
for(i = 0; i < names.length; i++){
if(names.name != "FID"){
fieldNames.push({name:names.name});
}
}
var dataItems = {
identifier: 'name',
label: 'name',
items: fieldNames
};
var store = new dojo.data.ItemFileReadStore({data:dataItems});
dijit.byId("columnInput").store = store;
}
<select id="columnInput" dojotype="dijit.form.ComboBox" style="width:150px;" value="Select Column" title="Select Column To Symbolize" fetchProperties="{sort:[{attribute:'name', descending:false}]}" onChange="setSymbology();" disabled></select>
No errors are thrown until I click the comboBox to see the values. Then it throws a: Object has no method 'query' error. Any thoughts? Clicking it fires the "setSymbology()" function, please post that code.
... View more
07-09-2012
10:49 AM
|
0
|
0
|
745
|
|
POST
|
suspicions are it is the dojo upgrade http://forums.arcgis.com/threads/61584-Sample-scripts-no-longer-work-since-upgrade-to-v3.0-of-the-API
... View more
07-06-2012
07:10 AM
|
0
|
0
|
1812
|
|
POST
|
Just to double check, you aren't running this file locally are you? You could do this at 2.8, you can not at 3.0. You have to run it from a webserver.
... View more
07-06-2012
06:34 AM
|
0
|
0
|
1812
|
|
POST
|
In method 2 you are setting the extent, you are not setting the spatial reference. I would try alerting (map.spatialReference.wkid) and my guess is it will be wrong. Try map.spatialReference = = new esri.SpatialReference({wkid:102100}); prior to your map.setExtent line
... View more
07-05-2012
12:00 PM
|
0
|
0
|
784
|
|
POST
|
Hey derek, I know this was a change that had to be made, but up till 2.8 everything ran fine as a local file. It was MUCH more convenient. This seems like a major step backwards.
... View more
07-05-2012
11:47 AM
|
0
|
0
|
4509
|
|
POST
|
if you want drop me an email jeff.pace (at) mymanatee.org The only reason I used json as because that is what my results already were. I would keep your data as an array if that is what you already have.
... View more
07-05-2012
06:20 AM
|
0
|
0
|
298
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-22-2014 08:35 AM | |
| 1 | 05-02-2012 04:56 AM | |
| 1 | 10-29-2021 07:40 AM | |
| 1 | 10-28-2021 05:26 AM | |
| 1 | 07-17-2012 08:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-01-2022
02:00 PM
|