- { ! this.state.auth && (
MapKit JS did not authenticate. Please refresh your token in the settings.
) }
-
-
- ];
- }
-}
-
-export default AppleMapEdit;
-
-
-
diff --git a/assets/js/gutenberg/blocks/mapkit-block.js b/assets/js/gutenberg/blocks/mapkit-block.js
deleted file mode 100644
index 4d3b3ed..0000000
--- a/assets/js/gutenberg/blocks/mapkit-block.js
+++ /dev/null
@@ -1,41 +0,0 @@
-/*global wp*/
-import AppleMapEdit from './edit';
-import attributes from './attributes';
-
-const { __ } = wp.i18n;
-const { registerBlockType } = wp.blocks;
-
-/**
- * Register Basic Block.
- *
- * Registers a new block provided a unique name and an object defining its
- * behavior. Once registered, the block is made available as an option to any
- * editor interface where blocks are implemented.
- *
- * @param {string} name Block name.
- * @param {Object} settings Block settings.
- * @return {WPBlock} The block, if it has been successfully registered; otherwise `undefined`.
- */
-registerBlockType( 'tenup/apple-map-for-wordpress',{
- title: __( 'Apple Maps for WordPress' ),
- icon: 'location',
- category: 'embed',
- attributes: attributes,
- edit: AppleMapEdit,
- save: props => {
- const { width, height , latitude, longitude, latitudeDelta, longitudeDelta, mapID } = props.attributes;
- const style = { width: width + '%', height: height + 'px' };
- return (
-