Use the addGeoJson
method of data
instead of loadGeoJson
. loadGeoJson
expects an URL as parameter, not a GeoJSON featurecollection object.
map.data.addGeoJson(tempObject);
Check the reference: https://developers.google.com/maps/documentation/javascript/reference#Data
Related Contents:
- How to import JSON File into a TypeScript file?
- How do I cast a JSON Object to a TypeScript class?
- This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console
- How to import a JSON file in ECMAScript 6?
- Auto-center map with multiple markers in Google Maps API v3
- How to convert a JSON string to a dictionary?
- Lowercase JSON key names with JSON Marshal in Go
- Convert a JSON Object to Buffer and Buffer to JSON Object back
- Header value: application/vnd.api+json
- How to serialize or convert Swift objects to JSON?
- How to use SVG markers in Google Maps API v3
- Import/Index a JSON file into Elasticsearch
- Spring MVC Multipart Request with JSON
- PostgreSQL Nested JSON Querying
- get the first (or n’th) element in a jq json parsing
- How to create JSON object using jQuery
- Groovy – Convert object to JSON string
- Google Maps API v3 infowindow close event/callback?
- How to generate a JSON log from nginx?
- How to set zoom level in google map
- Google maps Places API V3 autocomplete – select first option on enter
- How to format timestamp in outgoing JSON
- Edit package.json from command line
- What MIME type if JSON is being returned by a REST API?
- Retrieving JSON Object Literal from HttpServletRequest
- How can I tell RestTemplate to POST with UTF-8 encoding?
- Chrome Extension Manifest ‘Matches’
- Validating JSON against Swagger API schema
- JSON standard – floating point numbers
- Angular 2: Get Values of Multiple Checked Checkboxes
- How to parse a JSON object to a TypeScript Object
- JSON Schema definition for array of objects
- Best way to format large JSON file? (~30 mb)
- How to convert a JSON object to key=value format in jq?
- Node.js -Firebase Service Account Private Key won’t parse
- Composer hanging while updating dependencies
- Amazon Cloudwatch Logs Insights with JSON fields
- Jackson JSON Marshall ignore getter
- Encode/Decode Array of Types conforming to protocol with JSONEncoder
- RestTemplate PATCH request
- Set Jackson Timezone for Date deserialization
- How to convert a json response into yaml in bash
- what is the purpose of using square brackets in json? [duplicate]
- What does gs protocol mean?
- JSON JQ if without else
- Does LibreOffice Calc support JSON file importing/sorting?
- Catch exception in node during JSON.parse
- AngularJS – $http.post send data as json
- UnicodeDecodeError: ‘utf8’ codec can’t decode byte 0x80 in position 3131: invalid start byte
- Correct JSON Schema for an array of items of different type