Skip to main content

Posts

Showing posts from November, 2016

ArcGIS Javascript API - Pinpoint a Geo-Location by Address

Problem: I needed a map embedded on a form I was working on to pinpoint a location onto an ArcGIS map.  As far as ArcGIS, there were plenty of examples using latitude and longitude, but no examples using a standard address. This project seemed easier than it really was. Solution: I’ve decided to use the Javasript API to solve this problem and it worked like a charm.  Those who are new to ArcGIS should find this post helpful if you want to simply point to a location using an address.  Let’s get right to the code. Code: This is just very basic markup to show what files to include and what form elements to use. HTML (index.html): <html> <head>     <link rel="stylesheet" href="https://js.arcgis.com/3.18/esri/css/esri.css">     <style>         html, body, #myMap {             height: 400px;  ...