Skip to content

(index):49 Uncaught SyntaxError: Unexpected identifier #145

@DTHerrera

Description

@DTHerrera

When run the examples i get the following error: (index):49 Uncaught SyntaxError: Unexpected identifier, in the last line of following code:

gmap = new google.maps.Map(
        document.getElementById('gmap'), {
            center: new google.maps.LatLng(37.4419, -122.1419),
            zoom: 13,
            mapTypeId: google.maps.MapTypeId.ROADMAP,
            zoomControl: true,
            mapTypeControl: true,
            scaleControl: true,
            streetViewControl: true,
            rotateControl: true,
            scrollwheel: true,
            fullscreenControl: true
            styles: "height:500px;width:800px;margin:0;"
        });

Looks like he needs the comma at the end of the next line of code. " fullscreenControl: true".

Thanks a lot.
DTapia.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions