diff --git a/example/ios/Podfile b/example/ios/Podfile index b9eb015f..886b8393 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -66,7 +66,7 @@ target 'RNMaplibreExample' do ) # default version - pod 'maplibre-react-native', :path => '../../', :inhibit_warnings => false + pod 'vietmap-react-native', :path => '../../', :inhibit_warnings => false use_native_modules! diff --git a/example/ios/RNMaplibreExample.xcodeproj/project.pbxproj b/example/ios/RNMaplibreExample.xcodeproj/project.pbxproj index fe157d83..f148cc0f 100644 --- a/example/ios/RNMaplibreExample.xcodeproj/project.pbxproj +++ b/example/ios/RNMaplibreExample.xcodeproj/project.pbxproj @@ -203,8 +203,6 @@ dependencies = ( ); name = RNMaplibreExample; - packageProductDependencies = ( - ); productName = RNMaplibreExample; productReference = 13B07F961A680F5B00A75B9A /* RNMaplibreExample.app */; productType = "com.apple.product-type.application"; diff --git a/javascript/Maplibre.ts b/javascript/Maplibre.ts index d27f1dcc..97a3308a 100644 --- a/javascript/Maplibre.ts +++ b/javascript/Maplibre.ts @@ -58,7 +58,7 @@ import {UserTrackingMode} from './components/Camera'; // types: export enum StyleURL { - Default = 'https://maps.vietmap.vn/api/maps/light/styles.json?apikey=6411732992b3c4def7a117893215b9163a15e69065c0874d', + Default = 'https://maps.vietmap.vn/api/maps/light/styles.json?apikey=1dc93048adb6292feb26ee444d2630c2e6e3596061a34d4c', } /** @deprecated UserTrackingModes is deprecated use UserTrackingMode */ diff --git a/javascript/utils/Logger.ts b/javascript/utils/Logger.ts index 4772ac31..277389a2 100644 --- a/javascript/utils/Logger.ts +++ b/javascript/utils/Logger.ts @@ -105,7 +105,7 @@ class Logger { effectiveLevel({level, message, tag}: Log): LogLevel { if (level === 'warning') { if ( - tag === 'Mbgl-HttpRequest' && + tag === 'Vmgl-HttpRequest' && message.startsWith('Request failed due to a permanent error: Canceled') ) { // this seems to happening too much to show a warning every time @@ -120,11 +120,11 @@ class Logger { const {message} = log; const level = this.effectiveLevel(log); if (level === 'error') { - console.error('Mapbox error', message, log); + console.error('Vietmap error', message, log); } else if (level === 'warning') { - console.warn('Mapbox warning', message, log); + console.warn('Vietmap warning', message, log); } else { - console.log(`Mapbox [${level}]`, message, log); + console.log(`Vietmap [${level}]`, message, log); } } } diff --git a/package.json b/package.json index ebf2eca6..24baa71d 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { - "name": "@maplibre/maplibre-react-native", - "description": "A MapLibre GL Native plugin for creating maps in React Native", - "version": "9.1.0", + "name": "@vietmap/vietmap-gl-react-native", + "description": "A Vietmap GL Native plugin for creating maps in React Native", + "version": "0.0.1", "publishConfig": { "access": "public" }, - "author": "MapLibre", + "author": "VietMap", "main": "./javascript/index.ts", "keywords": [ "maps", @@ -13,12 +13,13 @@ "android", "maplibre", "react-native", - "mapbox" + "mapbox", + "vietmap" ], "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/maplibre/maplibre-react-native" + "url": "https://github.com/vietmap-company/vietmap-gl-react-native" }, "scripts": { "fetch:style:spec": "./scripts/download-style-spec.sh", diff --git a/maplibre-react-native.podspec b/vietmap-react-native.podspec similarity index 86% rename from maplibre-react-native.podspec rename to vietmap-react-native.podspec index 9e6569c8..43805551 100644 --- a/maplibre-react-native.podspec +++ b/vietmap-react-native.podspec @@ -61,12 +61,12 @@ def $RNMBGL.post_install(installer) end Pod::Spec.new do |s| - s.name = "maplibre-react-native" - s.summary = "React Native Component for Maplibre Native" + s.name = "vietmap-react-native" + s.summary = "React Native Component for Vietmap GL Native" s.version = package['version'] - s.authors = { "Ian Wagner" => "ian.wagner@stadiamaps.com" } # TODO: MapLibre email? - s.homepage = "https://github.com/maplibre/maplibre-react-native" - s.source = { :git => "https://github.com/maplibre/maplibre-react-native.git" } + s.authors = { "Vietmap" => "maps-api.support@vietmap.vn" } # TODO: MapLibre email? + s.homepage = "https://maps.vietmap.vn" + s.source = { :git => "https://github.com/vietmap-company/vietmap-gl-react-native.git" } s.license = "MIT" s.platform = :ios, "8.0"