Youspots Api´s
What is an Api? check out wiki for the best description: http://en.wikipedia.org/wiki/Application_programming_interface
Youspots Spot Embed Api V1.0
We encourage you to embed Spots into your Forum / Blog or Webpage. To create a seamlessly integration into your webpage we give you some parameters to affect the map. With the Youspots Embed Api you are now able to set different style values like height, width, background color and so on. See the list for the available parameters.
We hope you use our Api. If you miss anything you want to change what is not included so far, feel free to contact us. We try our best to give you the tools you need!
|
Parameters
|
Description
|
Possible values
|
|
embed
|
turns embedding on and off
|
yes
|
|
backgroundColor
|
set the backgroundcolor
|
colors as words: red/green/blue and so on - colors as hexvalues like FF0000 - c0c0c0
|
|
mapWidth
|
set the map width
|
just integer values like 50 or 500
|
|
mapHeight
|
set the map height
|
just integer values like 50 or 500
|
|
showChart
|
turns the elevation chart on or off
|
true / false
|
|
zoomLevel
|
sets the zoom level for the map
|
values from 1 to 19
|
|
pathColor
|
sets the color of the path on the map
|
colors as words: red/green/blue and so on - colors as hexvalues like FF0000 - c0c0c0
|
Every parameter EXCEPT "mapid=012" and "embed=yes" are OPTIONAL !
Example:
http://www.youspots.com/map.php?mapid=947&embed=yes&backgroundColor=red&mapWidth=600&mapHeight=300&zoomLevel=15&pathColor=blue
Youspots Search Embed Api V1.0
You can embed a search result from 'Find spots' as well. How to do it?
1. Search for something, whatever this is. For example you are looking for longboarding spots in a certain town.
2. If found what you wanted to, just click the "embed" button below the map
3. a new window will appear where you can set various map behaviors
|
Parameters
|
Description
|
Possible values
|
|
mapHeight
|
set the map height
|
integer values like 50,500, 5000 and so on
|
|
mapWidth
|
set the map width
|
integer values like 50,500, 5000 and so on
|
|
showChart
|
turns the elevation chart on or off
|
true / false
|
|
backgroundColor
|
set the backgroundcolor
|
colors as words: red/green/blue and so on - colors as hexvalues like FF0000 - c0c0c0
|
|
zoomLevel
|
sets the zoom level for the map
|
values from 1 to 19
|
|
mapType
|
Map type is the map it self
|
Hybrid map, Open street map, Satalite map and Terrain map
|
|
mapCenter
|
Map center are lat/long coordinates on the earth. These values will set the center of your map. To change these values just click in the map.
|
00,0 - 99,9
|
|
userLocator
|
The map will automaticly zoom to the viewers location, this can be a very cool feature - to use this you need to enable it!
|
true / false
|
|
searchBar
|
The search bar enables your user to search the map. The search bar is by default on. You can disable it.
|
true / false
|