Wiki

Information and Resources

User Tools

Site Tools


api:query_keyword

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
api:query_keyword [2015/01/23 22:01]
jkarl
api:query_keyword [2015/01/23 22:02] (current)
jkarl [3. Add a script block for the map coding]
Line 115: Line 115:
  
 ==== 3. Add a script block for the map coding ==== ==== 3. Add a script block for the map coding ====
-Add a <​script>​ tag after your <div> container. In the script tag, we'll set some of the initial values that we'll use in the map. You'​ll ​need to know the exact name of your collection ​from JournalMap, the coordinate of where you want the map centered, a map zoom level, and your API key. We'll also set up the parameters for the progress spinning wheel.+Add a <​script>​ tag after your <div> container. In the script tag, we'll set some of the initial values that we'll use in the map. You'​ll ​set the keywords that you want to search ​from JournalMap, the coordinate of where you want the map centered, a map zoom level, and your API key. We'll also set up the parameters for the progress spinning wheel.
  
 <code javascript>​ <code javascript>​
- var collectionName ​= "My Spatial Ecology Articles";+ var keywords ​= "Migratory Connectivity";
  var centerLat = 40;  var centerLat = 40;
  var centerLon = -100;  var centerLon = -100;
  var Zoom = 3;  var Zoom = 3;
- var apikey = "<ENTER YOUR API KEY HERE>";+ var apikey = "PjFRefUzFYzFCvshie8Q";
  var data = []; // a global to store the json response  var data = []; // a global to store the json response
  
api/query_keyword.txt ยท Last modified: 2015/01/23 22:02 by jkarl

FEEDBACK    DOWNLOADS    ABOUT    SUPPORT US    HELP    BLOG    WIKI

JournalMap data is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License
Creative Commons License