# Class ImportJSON

JSON importer for WP Google Maps Pro

This handles importing of files.

  WPGMZA\Import
  WPGMZA\ImportJSON

Namespace: WPGMZA
Since: 7.0.0
Located at import-export/class.import-json.php

Methods summary
`protected` | # `check_options( )` Check options. Check options. #### Throws Exception On malformed options.
`protected` | # `parse_file( )` Parse file data. Parse file data. #### Throws Exception When no maps found in file data, or no data to parse.
`public string` | # `admin_options( )` Output admin import options. Output admin import options. #### Returns string Options html.
`public` | # `import( )` Import the JSON file. Import the JSON file.
`public` | # `clear_map_data( )` Clear map data from applys. Clear map data from applys.
`protected` | # `import_maps( )` Import maps. Import maps.
`protected` | # `import_categories( )` Import categories. Import categories.
`protected` | # `import_markers( )` Import markers. Import markers.
`protected` | # `import_custom_fields( )` Import custom fields. Import custom fields.
`protected` | # `import_circles( )` Import circles. Import circles.
`protected` | # `import_polygons( )` Import polygons. Import polygons.
`protected` | # `import_polylines( )` Import polylines. Import polylines.
`protected` | # `import_rectangles( )` Import rectangles. Import rectangles.
`protected` | # `import_datasets( )` Import datasets. Import datasets.

Methods inherited from WPGMZA\Import
`__construct(), attempt_set_time_limit(), bail_if_near_time_limit(), check_ids(), geocode(), get_admin_notices(), get_remaining_time(), get_time_limit(), load_file(), onImportComplete(), record_start_time(), set_progress()`

Properties summary
`protected array` | $map_id_map Map id map. Map id map. Maps new imported ids to old importing ids. | # `array()`
`protected array` | $cat_id_map Category id map. Category id map. Maps new imported ids to old importing ids. | # `array()`
`protected array` | $cat_all_maps Categories mapped to all maps. Categories mapped to all maps. | # `array()`
`protected array` | $field_id_map Custom field id map. Custom field id map. Maps new imported ids to old importing ids. | # `array()`
`protected array` | $marker_id_map Marker id map. Marker id map. Maps new imported ids to old importing ids. | # `array()`

Properties inherited from WPGMZA\Import
`$db_defaults, $file, $file_data, $file_url, $options`