IDigBio API v1 Examples: Difference between revisions

(move attribution into js section →‎Mapping Example)
Line 1,088: Line 1,088:
The [[IDigBio API v1 Specification#Search|iDigBio Elasticsearch]] documentation should be considered required reading before attempting to integrate this code into one's site.
The [[IDigBio API v1 Specification#Search|iDigBio Elasticsearch]] documentation should be considered required reading before attempting to integrate this code into one's site.


To customize the map search results, modify the <code>var terms = [ ... </code> section.
This example displays a map matching Scientific Name (dwc:scientificName) of "Abietinella abietina" and an Institution Code  (dwc:institutionCode) of "DUKE".  The search terms for this query are:


This example displays a map matching Scientific Name (dwc:scientificName) of "abietinella abietina" and an Institution Code  (dwc:institutionCode) of "duke".
<pre>
scientificname" : "abietinella abietina"
institutioncode": "duke"
</pre>
 
To customize the map search results, modify the <code>var terms = [ ... </code> section with the terms of your choice.


<pre>
<pre>
1,554

edits