Exemple #1
0
void AndroidMapDevice::setGoogleLogoImage(JNIEnv *env, jobject bitmap) {
        RHO_MAP_TRACE("AndroidMapDevice: setGoogleLogoImage: start");
        m_googleLogo_image.reset(new AndroidImage(bitmap));
        IMapView *mv = mapView();
        if (mv) {
            mv->setGoogleLogoImage(m_googleLogo_image.get());
        }
        RHO_MAP_TRACE("AndroidMapDevice: setGoogleLogoImage: finish");
}
Exemple #2
0
void AndroidMapDevice::setPinCalloutLinkImage(JNIEnv *env, jobject bitmap)
{
    RHO_MAP_TRACE("AndroidMapDevice: setPinCalloutLinkImage: start");
    m_pin_calloutlinkimage.reset(new AndroidImage(bitmap));
    IMapView *mv = mapView();
    if (mv) {
        PIN_INFO pin_info = PIN_INFO();
        pin_info.x_offset = 5;

        mv->setPinCalloutLinkImage(m_pin_calloutlinkimage.get(), pin_info);
    }
    RHO_MAP_TRACE("AndroidMapDevice: setPinCalloutLinkImage: finish");
}
Exemple #3
0
void AndroidMapDevice::setMapView(IMapView *mv)
{
    RHO_MAP_TRACE("AndroidMapDevice: setMapView: start");
    m_mapview = mv;
    if (m_mapview && m_pin_image.get()) {

	PIN_INFO pin_info;
	pin_info.x_offset = -10;
	pin_info.y_offset = -35;
	pin_info.click_rect_x = -10;
	pin_info.click_rect_y = -35;
	pin_info.click_rect_width = 20;
	pin_info.click_rect_height = 30;

        m_mapview->setPinImage(m_pin_image.get(), pin_info);

		PIN_INFO pin_info1 = PIN_INFO();
		pin_info1.x_offset = 5;

        mv->setPinCalloutImage(m_pin_calloutimage.get(), pin_info1);
        mv->setPinCalloutLinkImage(m_pin_calloutlinkimage.get(), pin_info1);
		mv->setESRILogoImage(m_esriLogo_image.get());
		mv->setGoogleLogoImage(m_googleLogo_image.get());
        
        mv->set_file_caching_enable((int)ourIsCachingEnabled);

    }
    RHO_MAP_TRACE("AndroidMapDevice: setMapView: finish");
}
Exemple #4
0
void AndroidMapDevice::setPinImage(JNIEnv *env, jobject bitmap)
{
    RHO_MAP_TRACE("AndroidMapDevice: setPinImage: start");
    m_pin_image.reset(new AndroidImage(bitmap));
    IMapView *mv = mapView();
    if (mv) {

	PIN_INFO pin_info;
	pin_info.x_offset = -10;
	pin_info.y_offset = -35;
	pin_info.click_rect_x = -10;
	pin_info.click_rect_y = -35;
	pin_info.click_rect_width = 20;
	pin_info.click_rect_height = 30;

        mv->setPinImage(m_pin_image.get(), pin_info);
    }
    RHO_MAP_TRACE("AndroidMapDevice: setPinImage: finish");
}
Exemple #5
0
void AndroidMapDevice::paint(jobject canvas)
{
    RHO_MAP_TRACE1("paint: m_jdevice=%p", m_jdevice);

    if (m_mapview)
    {
        std::auto_ptr<AndroidDrawingContext> context(new AndroidDrawingContext(m_jdevice, canvas));
        m_mapview->paint(context.get());
    }

    RHO_MAP_TRACE("paint done");
}
Exemple #6
0
void AndroidMapDevice::setMapView(IMapView *mv)
{
    RHO_MAP_TRACE("AndroidMapDevice: setMapView: start");
    m_mapview = mv;
    if (m_mapview && m_pin_image.get()) {

	PIN_INFO pin_info;
	pin_info.x_offset = -10;
	pin_info.y_offset = -35;
	pin_info.click_rect_x = -10;
	pin_info.click_rect_y = -35;
	pin_info.click_rect_width = 20;
	pin_info.click_rect_height = 30;

        m_mapview->setPinImage(m_pin_image.get(), pin_info);

		PIN_INFO pin_info1 = {0};
		pin_info1.x_offset = 5;

        mv->setPinCalloutImage(m_pin_calloutimage.get(), pin_info1);

    }
    RHO_MAP_TRACE("AndroidMapDevice: setMapView: finish");
}