mpeterson
Forum Replies Created
-
Forum: Plugins
In reply to: [Export User Data] White pageSame problem trying to export 1700 users here, fwiw.
Forum: Fixing WordPress
In reply to: Getting javascript to work with WordPress for Google EarthI’ve tried creating a standalone javascript (*.js) file with the following code, and uploading it to my sites under wp-content/scripts, but that didn’t seem to work.
<script src="/http://www.google.com/jsapi?key=ABQIAAAAuPsJpk3MBtDpJ4G8cqBnjRRaGTYH6UMl8mADNa0YKuWNNa8VNxQCzVBXTx2DYyXGsTOxpWhvIG7Djw" type="text/javascript"></script> <script type="text/javascript"> var ge; google.load("earth", "1"); function init() { google.earth.createInstance('map3d', initCallback, failureCallback); } function initCallback(instance) { ge = instance; ge.getWindow().setVisibility(true); // add a navigation control ge.getNavigationControl().setVisibility(ge.VISIBILITY_AUTO); // add some layers ge.getLayerRoot().enableLayerById(ge.LAYER_BORDERS, true); ge.getLayerRoot().enableLayerById(ge.LAYER_ROADS, true); // in this sample we will attempt // to fetch a KML file and show it function finished(object) { if (!object) { // wrap alerts in API callbacks and event handlers // in a setTimeout to prevent deadlock in some browsers setTimeout(function() { alert('Bad or null KML.'); }, 0); return; } ge.getFeatures().appendChild(object); var la = ge.createLookAt(''); la.set(42.77890, -106.08009, 3772, ge.ALTITUDE_RELATIVE_TO_GROUND, -120, 68, 0); ge.getView().setAbstractView(la); } // fetch the KML var url = 'http://markspeterson.com/' + 'Maps/Sheepherder_Fire_09-13-2012_Final.kml'; google.earth.fetchKml(ge, url, finished); document.getElementById('installed-plugin-version').innerHTML = ge.getPluginVersion().toString(); } function failureCallback(errorCode) { } </script>If I then try to call that from a page nothing happens. My call is by using:
<script type="text/javascript" src="/coloradofiremaps.com/wp-content/scripts/my_java_script.js"></script> <script type="text/javascript"> <!-- init(); //--></script> <div id="map3d" style="width: 800px; height: 600px;"></div> <br> <div>Installed Plugin Version: <span id="installed-plugin-version" style="font-weight: bold;">Loading...</span></div> </center>Could someone perhaps give me a clue as to what I’m doing wrong, because I’m just not seeing it?
Forum: Fixing WordPress
In reply to: Getting javascript to work with WordPress for Google EarthI have, but it’s a little over my head. I struggled for hours with getting the demo up & running, through nothing more than brute force coding.
I was hoping perhaps someone would be nice enough to give me a little more ‘entry level’ guidance.
Forum: Plugins
In reply to: [Flexible Map] [Plugin: WP Flexible Map] Complex Polygon SupportTo simplify things, I uploaded another KML file that contained nothing more than a single placemark, and even that won’t display correctly. The label for the icon is blank, even though it is labelled in the KML.
The plugin isn’t following the <lookat> parameters either, so the zoom level is incorrect in the map.
Is the plugin not capable of displaying the name or label by default from a KML file?
Thanks for your help!
Forum: Plugins
In reply to: [Flexible Map] [Plugin: WP Flexible Map] Complex Polygon SupportStrange – when I open the KML file in Google Earth, it displays correctly. If I upload the KML to a Fusion Table, it displays correctly.
It does not seem to display correctly within the WP Flexible Map KML. Perhaps I am doing something wrong.