SyntaxError: missing : after property id with Google Maps Javascript APIHow to efficiently count the number of keys/properties of an object in JavaScript?How do I check if an object has a property in JavaScript?How can I merge properties of two JavaScript objects dynamically?How do I remove a property from a JavaScript object?Is there a link to the “latest” jQuery library on Google APIs?Google Maps API v3: How to remove all markers?Google Map API v3 — set bounds and centerHow to disable mouse scroll wheel scaling with Google Maps APIGoogle Maps API - load the USGoogle Maps JS API v3 - Simple Multiple Marker Example
Is it legal for company to use my work email to pretend I still work there?
Does object always see its latest internal state irrespective of thread?
Was any UN Security Council vote triple-vetoed?
A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?
Why are electrically insulating heatsinks so rare? Is it just cost?
NMaximize is not converging to a solution
Important Resources for Dark Age Civilizations?
How can bays and straits be determined in a procedurally generated map?
What does it mean to describe someone as a butt steak?
Are astronomers waiting to see something in an image from a gravitational lens that they've already seen in an adjacent image?
Roll the carpet
Can a vampire attack twice with their claws using Multiattack?
Decision tree nodes overlapping with Tikz
Arrow those variables!
Watching something be written to a file live with tail
A case of the sniffles
Why doesn't H₄O²⁺ exist?
Cross compiling for RPi - error while loading shared libraries
Are the number of citations and number of published articles the most important criteria for a tenure promotion?
Why doesn't a class having private constructor prevent inheriting from this class? How to control which classes can inherit from a certain base?
How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?
Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?
"You are your self first supporter", a more proper way to say it
What does the "remote control" for a QF-4 look like?
SyntaxError: missing : after property id with Google Maps Javascript API
How to efficiently count the number of keys/properties of an object in JavaScript?How do I check if an object has a property in JavaScript?How can I merge properties of two JavaScript objects dynamically?How do I remove a property from a JavaScript object?Is there a link to the “latest” jQuery library on Google APIs?Google Maps API v3: How to remove all markers?Google Map API v3 — set bounds and centerHow to disable mouse scroll wheel scaling with Google Maps APIGoogle Maps API - load the USGoogle Maps JS API v3 - Simple Multiple Marker Example
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I'm using the Google Maps Javascript API and this line is giving me error "SyntaxError: missing : after property id":
var options =
zoom: 4.5,
center: lat: 59.65, lng: -130.00
and this also occurs when I call the AddMarker function:
addMarker(
coords: lat: 58,74168, lng: -123,24657
);
I can't wrap my head around why this syntax is incorrect.
EDIT:
I've set my regional settings to French so the dots in my lat and long have been replaced with commas. However, the API expects dots, so how would I get around this?
javascript google-maps google-maps-api-3 google-api
|
show 1 more comment
I'm using the Google Maps Javascript API and this line is giving me error "SyntaxError: missing : after property id":
var options =
zoom: 4.5,
center: lat: 59.65, lng: -130.00
and this also occurs when I call the AddMarker function:
addMarker(
coords: lat: 58,74168, lng: -123,24657
);
I can't wrap my head around why this syntax is incorrect.
EDIT:
I've set my regional settings to French so the dots in my lat and long have been replaced with commas. However, the API expects dots, so how would I get around this?
javascript google-maps google-maps-api-3 google-api
1
^ second object uses commas where there should be periods.
– adeneo
Mar 21 at 22:52
You're probably passign this to a method that needs an id property. What happens if you include id as property with a generic value ?
– Nelson Teixeira
Mar 21 at 22:52
You have the properties74168
&24657
without a colon. I know that's not what those values are supposed to be, but it won't allow commas or it separates them into new properties.
– ItsPete
Mar 21 at 22:53
In the second object that's probably a regional setting. comma is used as a decimal separator in many countries. But it probably expects the dot to be used as a separator.
– Nelson Teixeira
Mar 21 at 22:54
1
@NelsonTeixeira Thank you! That's exactly what's happening. I'm setting my language to French. How would I tell the API to accept commas or perhaps force dots instead?
– Donald Duy
Mar 21 at 22:59
|
show 1 more comment
I'm using the Google Maps Javascript API and this line is giving me error "SyntaxError: missing : after property id":
var options =
zoom: 4.5,
center: lat: 59.65, lng: -130.00
and this also occurs when I call the AddMarker function:
addMarker(
coords: lat: 58,74168, lng: -123,24657
);
I can't wrap my head around why this syntax is incorrect.
EDIT:
I've set my regional settings to French so the dots in my lat and long have been replaced with commas. However, the API expects dots, so how would I get around this?
javascript google-maps google-maps-api-3 google-api
I'm using the Google Maps Javascript API and this line is giving me error "SyntaxError: missing : after property id":
var options =
zoom: 4.5,
center: lat: 59.65, lng: -130.00
and this also occurs when I call the AddMarker function:
addMarker(
coords: lat: 58,74168, lng: -123,24657
);
I can't wrap my head around why this syntax is incorrect.
EDIT:
I've set my regional settings to French so the dots in my lat and long have been replaced with commas. However, the API expects dots, so how would I get around this?
javascript google-maps google-maps-api-3 google-api
javascript google-maps google-maps-api-3 google-api
edited Mar 21 at 23:01
Donald Duy
asked Mar 21 at 22:47
Donald DuyDonald Duy
32
32
1
^ second object uses commas where there should be periods.
– adeneo
Mar 21 at 22:52
You're probably passign this to a method that needs an id property. What happens if you include id as property with a generic value ?
– Nelson Teixeira
Mar 21 at 22:52
You have the properties74168
&24657
without a colon. I know that's not what those values are supposed to be, but it won't allow commas or it separates them into new properties.
– ItsPete
Mar 21 at 22:53
In the second object that's probably a regional setting. comma is used as a decimal separator in many countries. But it probably expects the dot to be used as a separator.
– Nelson Teixeira
Mar 21 at 22:54
1
@NelsonTeixeira Thank you! That's exactly what's happening. I'm setting my language to French. How would I tell the API to accept commas or perhaps force dots instead?
– Donald Duy
Mar 21 at 22:59
|
show 1 more comment
1
^ second object uses commas where there should be periods.
– adeneo
Mar 21 at 22:52
You're probably passign this to a method that needs an id property. What happens if you include id as property with a generic value ?
– Nelson Teixeira
Mar 21 at 22:52
You have the properties74168
&24657
without a colon. I know that's not what those values are supposed to be, but it won't allow commas or it separates them into new properties.
– ItsPete
Mar 21 at 22:53
In the second object that's probably a regional setting. comma is used as a decimal separator in many countries. But it probably expects the dot to be used as a separator.
– Nelson Teixeira
Mar 21 at 22:54
1
@NelsonTeixeira Thank you! That's exactly what's happening. I'm setting my language to French. How would I tell the API to accept commas or perhaps force dots instead?
– Donald Duy
Mar 21 at 22:59
1
1
^ second object uses commas where there should be periods.
– adeneo
Mar 21 at 22:52
^ second object uses commas where there should be periods.
– adeneo
Mar 21 at 22:52
You're probably passign this to a method that needs an id property. What happens if you include id as property with a generic value ?
– Nelson Teixeira
Mar 21 at 22:52
You're probably passign this to a method that needs an id property. What happens if you include id as property with a generic value ?
– Nelson Teixeira
Mar 21 at 22:52
You have the properties
74168
& 24657
without a colon. I know that's not what those values are supposed to be, but it won't allow commas or it separates them into new properties.– ItsPete
Mar 21 at 22:53
You have the properties
74168
& 24657
without a colon. I know that's not what those values are supposed to be, but it won't allow commas or it separates them into new properties.– ItsPete
Mar 21 at 22:53
In the second object that's probably a regional setting. comma is used as a decimal separator in many countries. But it probably expects the dot to be used as a separator.
– Nelson Teixeira
Mar 21 at 22:54
In the second object that's probably a regional setting. comma is used as a decimal separator in many countries. But it probably expects the dot to be used as a separator.
– Nelson Teixeira
Mar 21 at 22:54
1
1
@NelsonTeixeira Thank you! That's exactly what's happening. I'm setting my language to French. How would I tell the API to accept commas or perhaps force dots instead?
– Donald Duy
Mar 21 at 22:59
@NelsonTeixeira Thank you! That's exactly what's happening. I'm setting my language to French. How would I tell the API to accept commas or perhaps force dots instead?
– Donald Duy
Mar 21 at 22:59
|
show 1 more comment
1 Answer
1
active
oldest
votes
In the second object that's probably a regional setting. Comma is used as a decimal separator in many countries. But it probably expects the dot to be used as a separator.
I would like to keep my regional settings to be French. How would I get the Google Maps API to cooperate with commas?
– Donald Duy
Mar 21 at 23:06
That part I don't know :)
– Nelson Teixeira
Mar 21 at 23:10
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55290369%2fsyntaxerror-missing-after-property-id-with-google-maps-javascript-api%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
In the second object that's probably a regional setting. Comma is used as a decimal separator in many countries. But it probably expects the dot to be used as a separator.
I would like to keep my regional settings to be French. How would I get the Google Maps API to cooperate with commas?
– Donald Duy
Mar 21 at 23:06
That part I don't know :)
– Nelson Teixeira
Mar 21 at 23:10
add a comment |
In the second object that's probably a regional setting. Comma is used as a decimal separator in many countries. But it probably expects the dot to be used as a separator.
I would like to keep my regional settings to be French. How would I get the Google Maps API to cooperate with commas?
– Donald Duy
Mar 21 at 23:06
That part I don't know :)
– Nelson Teixeira
Mar 21 at 23:10
add a comment |
In the second object that's probably a regional setting. Comma is used as a decimal separator in many countries. But it probably expects the dot to be used as a separator.
In the second object that's probably a regional setting. Comma is used as a decimal separator in many countries. But it probably expects the dot to be used as a separator.
answered Mar 21 at 23:01
Nelson TeixeiraNelson Teixeira
3,92821943
3,92821943
I would like to keep my regional settings to be French. How would I get the Google Maps API to cooperate with commas?
– Donald Duy
Mar 21 at 23:06
That part I don't know :)
– Nelson Teixeira
Mar 21 at 23:10
add a comment |
I would like to keep my regional settings to be French. How would I get the Google Maps API to cooperate with commas?
– Donald Duy
Mar 21 at 23:06
That part I don't know :)
– Nelson Teixeira
Mar 21 at 23:10
I would like to keep my regional settings to be French. How would I get the Google Maps API to cooperate with commas?
– Donald Duy
Mar 21 at 23:06
I would like to keep my regional settings to be French. How would I get the Google Maps API to cooperate with commas?
– Donald Duy
Mar 21 at 23:06
That part I don't know :)
– Nelson Teixeira
Mar 21 at 23:10
That part I don't know :)
– Nelson Teixeira
Mar 21 at 23:10
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55290369%2fsyntaxerror-missing-after-property-id-with-google-maps-javascript-api%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
^ second object uses commas where there should be periods.
– adeneo
Mar 21 at 22:52
You're probably passign this to a method that needs an id property. What happens if you include id as property with a generic value ?
– Nelson Teixeira
Mar 21 at 22:52
You have the properties
74168
&24657
without a colon. I know that's not what those values are supposed to be, but it won't allow commas or it separates them into new properties.– ItsPete
Mar 21 at 22:53
In the second object that's probably a regional setting. comma is used as a decimal separator in many countries. But it probably expects the dot to be used as a separator.
– Nelson Teixeira
Mar 21 at 22:54
1
@NelsonTeixeira Thank you! That's exactly what's happening. I'm setting my language to French. How would I tell the API to accept commas or perhaps force dots instead?
– Donald Duy
Mar 21 at 22:59