Comments (16)
Streetview needs the exact coordinates of the location and I don't think people will be writing something like @(12.12,14.54) in the normal text.
from embed-js.
maybey you can use this converter to get the coord's.
var latitude;
var longitude;
function Convert_LatLng_To_Address(address, callback) {
url = "http://maps.googleapis.com/maps/api/geocode/json?address=" + address + "&sensor=false";
jQuery.getJSON(url, function (json) {
Create_Address(json, callback);
});
}
function Create_Address(json, callback) {
if (!check_status(json)) // If the json file's status is not ok, then return
return 0;
latitude = json["results"][0]["geometry"]["location"]["lat"];
longitude = json["results"][0]["geometry"]["location"]["lng"];
callback();
}
function check_status(json) {
if (json["status"] == "OK") return true;
return false;
}
Convert_LatLng_To_Address(address, AlertLatLng);
function AlertLatLng() {
var result = "The latitude is " + latitude + " and longitude is " + longitude;
document.getElementById('result').innerHTML=result;
}
var address = "adres number city";
from embed-js.
How will you resolve the issue of multiple place with same name ? I don't think anyone is going to write the whole address.
from embed-js.
var address = "adres number city COUNTRY/REGION"; can be used too...
from embed-js.
now you can check them and report any bugs that you find.
from embed-js.
thnx. I updated the embed.js and added the options, but can't see a diference in the map display.
from embed-js.
what does your option look like ?
from embed-js.
i tried: 'place' or 'streetview' or 'view'
from embed-js.
are you using the latest code from the canary branch ?
and is there any error in the console because mine is working fine.
from embed-js.
yes from this location
6cdb951
from embed-js.
any error on the console ?
from embed-js.
i think i found the problem :P i was running script on old backup folder.
it works now.
sorry :(
from embed-js.
nice that ur problem is solved now 😄
from embed-js.
yeah yeah! next time i look 4times before reporting something :P
from embed-js.
push the button to close this :P
from embed-js.
its already closed.
from embed-js.
Related Issues (20)
- error when code language not specified.
- umd build throws error for youtube
- Add caching support HOT 3
- Remove play from all description
- replaceText option doesn't work HOT 1
- Fail compiling with Webpack (production env) HOT 4
- Import Error Gulp/Webpack Task HOT 3
- expected object, got undefined HOT 7
- Link containing '@' is not rendered correctly HOT 2
- The examples seem to be broken HOT 1
- demo fails HOT 1
- 404 link on website HOT 2
- Question: Any rich commenting components this? HOT 1
- Embedjs not working HOT 1
- Does not work on plain JS/jQuery HOT 1
- YouTube plugin not correctly parsing full urls HOT 1
- The codesandbox example in the readme doesn't work with youtube HOT 1
- Unsecure dependency HOT 2
- Looking for maintainers HOT 4
- Unable to use Emoji plugin via CDN
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embed-js.