Open aredqueen22 opened 10 years ago
You can only put address or coords.
For what you need put address and coords? if you have coords it is the best for map. if you put address, first maps need to get coords from geocode and work with coords in map.
here an example with a switch:
gomapOption = {
zoom: 6
}
if( your condition ){
gomapOption['address'] = 'Québec, Quebec';
}else{
gomapOption['latitude'] = 56.948813;
gomapOption['longitude'] = 24.104004;
}
$("#map").goMap(gomapOption);
@pittss i think you can close this issue
Hello
Can i put address & coords together or seperated in the code?
Example : $(function() { $("#map").goMap({ address:'Québec, Quebec', latitude: 56.948813, longitude: 24.104004, zoom: 6 }); });
It's maybe not the best example.. but I have two fields to know the position of a place. The real address and coords. Thnks.