This is an example of how we can build with Google API a map that contains more than one simple marker.
Check the result [here] (http://codepen.io/nncl/pen/QjwKYL).
[ | |
{ | |
"id":3, | |
"foto":"Imagens/pet1.jpg", | |
"nome":"Brutus", | |
"idade":0 | |
}, | |
{ | |
"id":4, | |
"foto":"Imagens/pet4.jpg", |
This is an example of how we can build with Google API a map that contains more than one simple marker.
Check the result [here] (http://codepen.io/nncl/pen/QjwKYL).
Problems with Carvox.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
.my-class {
width: calc(100% - 4px);
width: -webkit-calc(100% - 4px);
width: -moz-calc(100% - 4px);
}
[
{
"id": "001",
"title": "All Day Event",
"url": "http://google.com/",
"start": "2015-04-01",
"end": null,
"color": "#fec32b"
},
#PHP Varible to JS
On your .php
file, for example:
$var = 'My PHP variable';
echo $var;
And in our .js
file we'll make a POST to get the data from PHP:
{
"data": {
"animals": [
{
"id":1,
"foto":"Imagens/pet1.jpg",
"nome":"Pelotas 1",
"idade": "1 ano"
},
[
{
"title" : "Din Digital",
"lat" : "-23.534749",
"lng" : "-46.611924",
"color" : "A00000",
"icon" : "http://s12.postimg.org/5aevbk6t5/image.png"
},
{
"title" : "Din Digital 2",