|
POST
|
In ArcGIS Extension for the Google Maps API, Sample Code: Extract Profile of Google Route, http://help.arcgis.com/en/webapi/javascript/gmaps/samples/geoprocessor/gp_profile.html shows the routing. I loaded the source code and tried to run it locally, but unsuccessful. Of the source code, Line 32: esri.arcgis.gmaps.Config.proxyUrl = "/arcgisserver/apis/javascript/proxy/proxy.ashx"; I am not sure whether this is the problem to dis-function the routing if runs at my local CPU. Please provide the hint if possible. Thanks.
... View more
07-16-2011
10:05 AM
|
0
|
2
|
1174
|
|
POST
|
This is regarding one of ESRI's sample code in ArcGIS Extension for Google Map API. For How to Add ArcGIS Server Cached Map (at http://help.arcgis.com/en/webapi/javascript/gmaps/help/google_samplestart.htm, the topic is /Map/Add ArcGIS Server cached map), ESRI provides a smaple code at http://help.arcgis.com/en/webapi/javascript/gmaps/samples/maps/map_cached.html. On Lines 30 and 32 of this script, a variable gTileLayer is used. //create custom tile layer - Line 26 var tiledmap = new esri.arcgis.gmaps.TiledMapServiceLayer("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Portland/ESRI_LandBase_WebMercator/MapServer", mapOptions, addTiledMap); } function addTiledMap(gTileLayer) { // Line 30 //Add tile layer as a GTileLayerOverlay using mapExtension gOverlays = mapExtension.addToMap(gTileLayer); // Line 32 } However, this variable is not defined before. I wonder how a tiled layer can be added on the map. I wish ESRI can provide an answer for it. Thanks.
... View more
07-16-2011
08:05 AM
|
0
|
1
|
864
|
|
POST
|
TSyle: Thanks for your response. Actually, I used the API as well the sample code from the website. I used the source code completely. I am not sure where it relates to the key since I used the one in the source code. I wish my Q can be answered. Thanks. Shaning
... View more
07-16-2011
04:10 AM
|
0
|
0
|
1127
|
|
POST
|
I got the same problem. I also post it at http://forums.arcgis.com/threads/34799-Google-Maps-Not-Display?highlight=google+maps I checked my source code the gmapslayer_compiled.js was actually loaded. But the problem is still there. Have you found the solution yet? Thanks.
... View more
07-15-2011
01:33 PM
|
0
|
0
|
1049
|
|
POST
|
swingley: I tried the script but the google maps do not display. I post a thread at http://forums.arcgis.com/threads/34799-Google-Maps-Not-Display?highlight=google+maps. Do you know how to fix it? Thanks. Shaning
... View more
07-15-2011
09:08 AM
|
0
|
0
|
1273
|
|
POST
|
I tried to use JS API for Google Maps Ext. I loaded the sample code: Google May layers for ArcGIS JS API from http://www.arcgis.com/home/item.html?id=a84d64b0d1404366a02da714ca59d61f. Then I open its htm file. I can only view the ESRI Topo, but all of the Google Maps layers are not displayed. I suspect that the problem could be related to this piece of code: </script> <script type="text/javascript" src="../src/gmapslayer_compiled.js"> </script> In the folder, I structure the files like that: gmapslayer.htm src (folder, containing 2 files below) gmapslayer_compiled.js gmapslayer.js Then, I revised the code like that: <script type="text/javascript" src="http://gmaps-utility-gis.googlecode.com/svn/tags/gmapslayer/1.0/src/gmapslayer_compiled.js" > It means that I call the JS through internet. The result is still the same. Does anyone know how to do fix it? Thanks.
... View more
07-15-2011
05:57 AM
|
0
|
4
|
2677
|
|
POST
|
I want to add a CompositeSymbol at a point with a custimized number (or text). How to do it? Please share your experience. Thanks.
... View more
12-09-2010
04:49 AM
|
0
|
2
|
981
|
|
POST
|
Jennifer: I tried your code that is essentially the same as the source code in http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ClosestFacility But the results received are identially - All of the buttons except for the 'Clear All Graphics' are disabled. I might give up to use if for the time-being. Thanks for your a lot of time. Shaning
... View more
11-02-2010
06:37 AM
|
0
|
0
|
1230
|
|
POST
|
One of the problem is I am still not sure how to effectively bind to the MainPage's map. I will try your sample code next week. Thanks and have a nice weekend.
... View more
10-29-2010
10:23 AM
|
0
|
0
|
1230
|
|
POST
|
After the removal of Map="{Binding ElementName=MyMap} The problem is still unsolved.
... View more
10-29-2010
09:19 AM
|
0
|
0
|
1230
|
|
POST
|
Tat problem was solved but the buttons are still grayed out. I put a stop point at public Map Map { } and then run debugging. However, this method is not called at all. I believe there should be a call somewhere that I haven't specify. Please tell me how to call the method. Many thanks.
... View more
10-29-2010
06:07 AM
|
0
|
0
|
1981
|
|
POST
|
Thanks to both for your responses. I did review and tried the code before, but not successful. In my scenario, the tooltip is applied to a usercontrol tool. In the usercontrol's xaml, <esri:Map x:Name="_Map" Background="White" Extent="-122.554, 37.615, -122.245, 37.884" > <esri:GraphicsLayer ID="MyGraphicsLayer"> </esri:Map> ... <Canvas HorizontalAlignment="Left" VerticalAlignment="Top" > <esri:MapTip x:Name="MyMapTip" BorderBrush="#99000000" BorderThickness="1" Title="State Info" VerticalOffset="10" HorizontalOffset="10" Background="#DDFFFFFF" /> </Canvas> In the C# file, GraphicsLayer graphicsLayer = _Map.Layers["MyGraphicsLayer"] as GraphicsLayer; MyMapTip.GraphicsLayer = graphicsLayer; Also the usercontrol's _Map is set the same as the MainPage's MyMap in MainPage.xaml.cs: myUserControl.SetMap(this.MyMap); in the C# file, by: public void SetMap(Map TheMap); { _Map = TheMap; } Is there anything wrong in my coding? Thanks.
... View more
10-29-2010
05:32 AM
|
0
|
0
|
918
|
|
POST
|
Using Flex Builder, I can set a graphic tooltip like that: myGraphic.toolTip = "my tooltip"; In SL, I cannot find the tooltip property, but see graphic.MapTip. Does anyone knows how to set a tooltip value for SL application? Thanks.
... View more
10-28-2010
10:15 AM
|
0
|
4
|
4185
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-18-2023 10:02 AM | |
| 3 | 07-14-2023 12:29 PM | |
| 1 | 04-02-2021 12:16 PM | |
| 1 | 07-24-2017 11:31 AM | |
| 1 | 04-04-2016 03:59 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-01-2025
11:58 AM
|