POST
|
Big Thanks... That worked awesome!!! Your help not only resolves the issue, it motivates to keep playing!!!
... View more
10-23-2016
02:10 PM
|
0
|
0
|
419
|
POST
|
This just may be my ignorance as I am just starting out. ( I'll take any advise on tutorials/videos/books ...etc for dealing with the javascript api --specifically kml & json).... I used the sample to load a KML file and it displayed fine. I then made some changes to the KML but when the page loads it still displays the original KML data without the changes. If I rename the KML file and then modify the page to load the new file, it displays the new content. any help, greatly appreciated!!!! <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>KML</title> <link rel="stylesheet" href="https://js.arcgis.com/3.18/dijit/themes/tundra/tundra.css"> <link rel="stylesheet" href="https://js.arcgis.com/3.18/esri/css/esri.css"> <style> html, body { height: 100%; width: 100%; margin: 0; padding: 0; } #map { height: 100%; margin: 0; padding: 0; } #meta { position: absolute; left: 20px; bottom: 20px; width: 300px; height: 100px; z-index: 40; background: #fff; color: #777; padding: 5px; border: 2px solid #666; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; font-family: arial; font-size: 0.9em; } #meta h3 { color: #666; font-size: 1.1em; padding: 0px; margin: 0px; display: inline-block; } #loading { float: right; } </style> <script src="https://js.arcgis.com/3.18/"></script> <script> var map; require([ "esri/map", "esri/layers/KMLLayer", "dojo/parser", "dojo/dom-style", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!" ], function( Map, KMLLayer, parser, domStyle ) { map = new Map("map", { basemap: "topo", center: [-108.663, 42.68], zoom: 6 }); parser.parse(); var kmlUrl = "http://79.170.40.180/churchofthecloud.com/apitest/newtest2.kml"; var kml = new KMLLayer(kmlUrl); map.addLayer(kml); kml.on("load", function() { domStyle.set("loading", "display", "none"); }); }); </script> </head> <body class="tundra"> <div data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline',gutters:false" style="width: 100%; height: 100%; margin: 0;"> <div id="map" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'"> <div id="meta"> <span id="loading"><img src="images/loading_black.gif" /></span> <h3>Display KML Using a <a href="https://developers.arcgis.com/javascript/3/jsapi/kmllayer-amd.html">KMLLayer</a></h3> <br /> The map displays a simple KML file that was created using Google Earth and is hosted on an Esri server. Symbology and attributes are honored. <div> </div> </div> </body> </html>
... View more
10-23-2016
05:06 AM
|
0
|
2
|
1293
|
POST
|
Thanks!!! I will give it a shot. Sadly it will take me a day or two as I attempt to pay my dues working it out. I will return to "Mark Correct" & Helpful "yes" .... or ask for more help. Thanks again!!!
... View more
10-22-2016
06:56 PM
|
0
|
0
|
262
|
POST
|
Is it possible to load a json file, that I converted from a shape file, on a map using the API ? Ultimately I need to be able to load data that that is generated from a script. Are there any other options besides json and KML that will allow points and polylines created as a text based file? I am just trying to create a basic connectivity map. Apologies for my ignorance!!
... View more
10-22-2016
05:22 PM
|
0
|
2
|
1000
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|