Skip to content

Commit

Permalink
Updated to V1.1 of API
Browse files Browse the repository at this point in the history
  • Loading branch information
amundhak committed Jun 3, 2014
1 parent 5f940dc commit d4fe8fb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<title>OpenLayers Example</title>
<script type="text/javascript" src="http://openlayers.org/api/OpenLayers.js"></script>
<!-- FMEServer Javascript API -->
<script src="http://api.fmeserver.com/js/v1/FMEServer.min.js" type="text/javascript"></script>
<script src="http://api.fmeserver.com/js/v1.1/FMEServer.js" type="text/javascript"></script>
</head>
<body>
<div style="width:100%; height:100%" id="map"></div>
<script type="text/javascript">
var map, fmes, routeVector, stopVector, format;
var map, routeVector, stopVector, format;
var fromProjection, toProjection;
var busRoutes, busStops;

window.onload = function() {
// Create a new FME Server Connection Object
fmes = new FMEServer({
// Initialize the FME Server Connection Object
FMEServer.init({
server : "https://fmepedia2014-safe-software.fmecloud.com",
token : "fb1c3ee6828e6814c75512dd4770a02e73d913b8"
});
Expand Down Expand Up @@ -83,15 +83,15 @@
// the workspace name: GeoJson.fmw
// Parameter in this case which layer: ?FEATURE_TYPES=Default.BusRoutes

fmes.customRequest(
FMEServer.customRequest(
"https://fmepedia2014-safe-software.fmecloud.com/fmedatastreaming/Demos/GeoJson.fmw?FEATURE_TYPES=default_busroutes", "GET",
function(json){
busRoutes = format.read(JSON.stringify(json));
routeVector.addFeatures(busRoutes);
}
);

fmes.customRequest(
FMEServer.customRequest(
"https://fmepedia2014-safe-software.fmecloud.com/fmedatastreaming/Demos/GeoJson.fmw?FEATURE_TYPES=default_busstops", "GET",
function(json){
busStops = format.read(JSON.stringify(json));
Expand Down

0 comments on commit d4fe8fb

Please sign in to comment.