This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)clickedonPoint { | |
self.m_mapView.touchDelegate = self; | |
self.m_sketchLayer.geometry = [[AGSMutablePoint alloc] initWithSpatialReference:self.m_mapView.spatialReference]; | |
// Not sure why you have a sketchLayer here. | |
// However, if you do have one, you need to set the mapView's touchDelegate to the sketch layer. | |
// See https://developers.arcgis.com/ios/swift/guide/sketch-layer.htm#GUID-4CF8925A-B8B9-4656-AE3D-51DD126234CA | |
} | |
-(void)mapView:(AGSMapView *)mapView didClickAtPoint:(CGPoint)screen mapPoint:(AGSPoint *)mappoint features:(NSDictionary *)features { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// WalkTimeTest-Swift | |
// | |
// Created by Nicholas Furness on 7/11/16. | |
// Copyright © 2016 Esri. All rights reserved. | |
// | |
import UIKit | |
import ArcGIS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require([ | |
"esri/views/ui/UI" | |
], function(UI) { | |
var extension = { | |
hide: function() { | |
_setUIVisible(this, false); | |
}, | |
show: function() { | |
_setUIVisible(this, true); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AGSLocator+suggestionSwizzle.swift | |
// SuggestTest | |
// | |
// Created by Nicholas Furness on 8/17/16. | |
// Copyright © 2016 Esri. All rights reserved. | |
// | |
import ArcGIS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "ViewController.h" | |
#import <ArcGIS/ArcGIS.h> | |
#define kSimulatedMetersPerSecond 2 | |
@interface ViewController () <AGSRouteTaskDelegate> | |
@property (nonatomic, strong) AGSRouteTaskParameters *defaultParams; | |
@property (nonatomic, strong) AGSRouteTask *routeTask; | |
@property (weak, nonatomic) IBOutlet AGSMapView *mapView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href='javascript:void((function(){var m=false; if (typeof esri !== "undefined" && typeof esri.arcgisonline !== "undefined") {if (esri.arcgisonline.map.main.map !== null) {m=true;}}; if (m) {var a=esri.arcgisonline.map.main.map; var l=a.__LOD, c=a.extent.getCenter(); alert("Scale: " + l.scale + "\nLevel: " + l.level + "\nCenter: " + c.x + "," + c.y + "\nLat,Lon: " + c.getLatitude() + "," + c.getLongitude());} else {alert("Use this bookmark while viewing a map at ArcGIS.com!");}})());'>ArcGIS Map Deets</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension AGSGraphicsOverlay { | |
fileprivate struct AssociatedKeys { | |
static var referenceNameKey = "geodev_referenceName" | |
} | |
var referenceName:String? { | |
get { | |
return objc_getAssociatedObject(self, &AssociatedKeys.referenceNameKey) as? String | |
} | |
set { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"> | |
<title>Load a basic web scene - 4.3</title> | |
<link rel="stylesheet" href="https://js.arcgis.com/4.3/esri/css/main.css"> | |
<script src="https://js.arcgis.com/4.3/"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default (request) => { | |
let query = require('codec/query_string'); | |
// return if the block does not have anything to analyze | |
if (!query) { | |
return request.ok(); | |
} | |
// Require console to print debug information | |
let console = require('console'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// TestDrag | |
// | |
// Created by Nicholas Furness on 11/10/17. | |
// Copyright © 2017 Esri. All rights reserved. | |
// | |
import ArcGIS |