From fe2a26225f3746381b36ad8b6c6a3ce7727bf655 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 29 Aug 2016 12:00:08 -0700 Subject: [core, ios, android, qt] Observe style layer mutations rather than requiring SDKs to use Map::update This paves the way for updates to filter and layout properties to trigger a source reload, without each SDK having to participate in the implementation. --- platform/android/src/style/layers/layer.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'platform/android/src/style/layers/layer.cpp') diff --git a/platform/android/src/style/layers/layer.cpp b/platform/android/src/style/layers/layer.cpp index 4d5f90f67e..3c1fc0af62 100644 --- a/platform/android/src/style/layers/layer.cpp +++ b/platform/android/src/style/layers/layer.cpp @@ -63,19 +63,6 @@ namespace android { } } - void Layer::updateStyle(jni::JNIEnv&, jni::jboolean updateClasses) { - //Update the style only if attached - if (ownedLayer == nullptr) { - Update flags = mbgl::Update::RecalculateStyle; - if(updateClasses) { - flags = flags | mbgl::Update::Classes; - } - map->update(flags); - } else { - mbgl::Log::Debug(mbgl::Event::JNI, "Not updating as layer is not attached to map (yet)"); - } - } - void Layer::setFilter(jni::JNIEnv& env, jni::Array> jfilter) { using namespace mbgl::style; using namespace mbgl::style::conversion; @@ -155,7 +142,6 @@ namespace android { METHOD(&Layer::getId, "nativeGetId"), METHOD(&Layer::setLayoutProperty, "nativeSetLayoutProperty"), METHOD(&Layer::setPaintProperty, "nativeSetPaintProperty"), - METHOD(&Layer::updateStyle, "nativeUpdateStyle"), METHOD(&Layer::setFilter, "nativeSetFilter"), METHOD(&Layer::setSourceLayer, "nativeSetSourceLayer"), METHOD(&Layer::getMinZoom, "nativeGetMinZoom"), -- cgit v1.2.1