怀里藏娇

文章 评论 浏览 30

怀里藏娇 2025-02-21 01:57:24

请在执行前打印查询,这将向您显示问题。
我相信你需要放置空间
opa.list_header_id之后,

我在这里修复了它,看看它是否有效

  vv_xml_disc_query           VARCHAR2(32767) := NULL;
 cust_lang varchar2(10):='F';
   trx_id number:=2978023;
   line_so_line_id number:=4496418;
   customer_trx_line_id number:=3459305;
   
  begin
 
 vv_xml_disc_query :=  'SELECT   '||'(SELECT NVL(moct.translated_offer_name,disc_desc)
                                                     FROM tablel moct,
                                                          ozf_offers oo
                                                     WHERE moct.offer_id = oo.offer_id
                                                     AND oo.qp_list_header_id = opa.list_header_id'
                                                       ||' AND moct.language = '||''''||cust_lang||''''||')'||' DISC_DESC,
                                                    DISC_RATE, 
                                                    DISC_UNIT_PRICE,      
                                                    DISC_EXT_AMT,       
                                                    DISC_AMT FROM table2 WHERE CUSTOMER_TRX_ID = '||trx_id 
                                                      || ' AND interface_line_attribute6 = '|| line_so_line_id
                                                      || ' AND customer_trx_line_id = ' ||customer_trx_line_id ; 
                                                      
                                                      
    -- 
dbms_output.put_line('vv_xml_disc_query:'||vv_xml_disc_query);
EXECUTE IMMEDIATE vv_xml_disc_query;
exception when others then
dbms_output.put_line('error:'||SQLERRM);

Please print the query before execute, that will show you the issue.
I believe you need to put spaces
after opa.list_header_id and AND

I fixed it here and see if that works

  vv_xml_disc_query           VARCHAR2(32767) := NULL;
 cust_lang varchar2(10):='F';
   trx_id number:=2978023;
   line_so_line_id number:=4496418;
   customer_trx_line_id number:=3459305;
   
  begin
 
 vv_xml_disc_query :=  'SELECT   '||'(SELECT NVL(moct.translated_offer_name,disc_desc)
                                                     FROM tablel moct,
                                                          ozf_offers oo
                                                     WHERE moct.offer_id = oo.offer_id
                                                     AND oo.qp_list_header_id = opa.list_header_id'
                                                       ||' AND moct.language = '||''''||cust_lang||''''||')'||' DISC_DESC,
                                                    DISC_RATE, 
                                                    DISC_UNIT_PRICE,      
                                                    DISC_EXT_AMT,       
                                                    DISC_AMT FROM table2 WHERE CUSTOMER_TRX_ID = '||trx_id 
                                                      || ' AND interface_line_attribute6 = '|| line_so_line_id
                                                      || ' AND customer_trx_line_id = ' ||customer_trx_line_id ; 
                                                      
                                                      
    -- 
dbms_output.put_line('vv_xml_disc_query:'||vv_xml_disc_query);
EXECUTE IMMEDIATE vv_xml_disc_query;
exception when others then
dbms_output.put_line('error:'||SQLERRM);

oracle:子查询右括号的动态SQL查询错误(ORA-00907:缺少右括号)

怀里藏娇 2025-02-20 22:02:46

您可以使用 textwrap.dextwrap.dedent (标准库):

import textwrap

query = textwrap.dedent(f"""\
    update {db_name}.{schema_name}.{self.table_name}
    set {self.updated_field} = {self.updated_field}
    where {self.key_field} in ({ids});
""")

print(query)

这将删除每行之间常见的所有领先空间。对于小费引用的字符串有用。

You can use textwrap.dedent (standard library):

import textwrap

query = textwrap.dedent(f"""\
    update {db_name}.{schema_name}.{self.table_name}
    set {self.updated_field} = {self.updated_field}
    where {self.key_field} in ({ids});
""")

print(query)

This will remove all leading spaces that are common between every line. Useful for tipple quoted strings.

python-从字符串中删除空格和凹痕

怀里藏娇 2025-02-20 21:13:51

get _stats 将仅显示有关您创建的索引的详细信息,并且不包括有关隐藏索引或系统索引的统计信息,该索引或系统索引以DOT开头()。

get _cluster/stats 将显示群集中所有可用索引的详细信息,并且还将包括隐藏/系统索引。

GET _stats will show details only about the index which you have created, and it's not included statistics about hidden index or system index which start with dot(.).

GET _cluster/stats will show details for all the indices available in your cluster and it will include hidden / system index as well.

elasticsearch _cluster/stats api vs _stats api

怀里藏娇 2025-02-20 07:40:30

在您的 settings.py 中评论该行。
我认为您偶然地没有服从这条线。

Comment that line in your settings.py.
I think you uncommented that line by accident.

安全警告:不要随着调试而运行,即使已经更改为false

怀里藏娇 2025-02-20 02:12:48

网站中的名字字段 https://www.virustotal。 com/gui/join-us 位于多个 #shadow-root(open) 内。

“


解决方案

,以将字符序列发送到您必须使用 a>,您可以使用以下定位器

  • 策略
     来自Selenium Import WebDriver
    进口时间
    
    options = webdriver.chromeoptions() 
    options.add_argument(“启动最大化”)
    options.add_experimentim_option(“ dubludeswitches”,[“ enable-automation”])
    options.add_experimentim_option('useAutomationExtension',false)
    驱动程序= webdriver.chrome(options = options,executable_path = r'c:\ web drivers \ chromedriver.exe')
    driver.get(“ https://www.virustotal.com/gui/join-us”)
    时间。
    first_name = driver.execute_script(“返回document.queryselector('vt-virustotal-app')。shadowroot.queryselector('join-us-view.iron-reclected')。shadowroot.queryyselector('vt-ui-ui-two-two-two-two-column-hero-layout')。querySelesector ('vt-ui-text输入#first_name')。shadowroot.queryselector('输入#input')”)
    first_name.send_keys(“ Muhammad Aamir”)
     
  • 浏览器快照:

“


参考

您可以在以下内容中找到一些相关的讨论:

The First name field within the website https://www.virustotal.com/gui/join-us is located deep within multiple #shadow-root (open).

virustotal_firstname


Solution

To send a character sequence to the First name field you have to use shadowRoot.querySelector() and you can use the following Locator Strategy:

  • Code Block:

    from selenium import webdriver
    import time
    
    options = webdriver.ChromeOptions() 
    options.add_argument("start-maximized")
    options.add_experimental_option("excludeSwitches", ["enable-automation"])
    options.add_experimental_option('useAutomationExtension', False)
    driver = webdriver.Chrome(options=options, executable_path=r'C:\WebDrivers\chromedriver.exe')
    driver.get("https://www.virustotal.com/gui/join-us")
    time.sleep(7)
    first_name = driver.execute_script("return document.querySelector('vt-virustotal-app').shadowRoot.querySelector('join-us-view.iron-selected').shadowRoot.querySelector('vt-ui-two-column-hero-layout').querySelector('vt-ui-text-input#first_name').shadowRoot.querySelector('input#input')")
    first_name.send_keys("Muhammad Aamir")
    
  • Browser Snapshot:

virustotal_firstname_filled


References

You can find a couple of relevant discussions in:

如何使用Selenium和Python在网站https://www.virustotal.com中找到Shadow-root(Open)中的名字字段

怀里藏娇 2025-02-19 18:51:11

您应该尝试'scipy.stats.truncnorm' - QUOTE 此分布的标准形式是标准的正常截断为范围

https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.truncnorm.html

You should try 'scipy.stats.truncnorm' - quote The standard form of this distribution is a standard normal truncated to the range

https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.truncnorm.html

Python中正态分布的严格正值

怀里藏娇 2025-02-19 18:44:29

假设 petlist 参数是 list of pet> pet 对象,那么PETLIST line的PET的将通过列表,您将能够使用 PET 变量访问当前元素。

for循环中正在发生的事情是,您检查当前对象是否将其名称传递给了函数的的第二个参数。为此,您需要访问 name 存储在 pet actibal中的对象的属性(假定为 pet )。此的python语法是 pet.name < variable_name>。attribute_name> )。
您知道该属性的存在,这要归功于类定义,即 __ INT __ 方法,您可以在创建时看到PET类的新实例(默认为“ Kitty) ”)。

Assuming the petlist parameter is a List of Pet objects, then the for pet in petlist line will iterate through the list and you will be able to use the pet variable to access the current element.

What is happening in the for loop is that you check whether the current object has the name you passed as a second parameter of the whichone function. To do this, you'll need to access the name attribute of the object stored in the pet variable (which is assumed to be of type Pet). The Python syntax for this is pet.name (<variable_name>.<attribute_name>).
You know of the existence of this attribute thanks to the class definition, to the __init__ method, where you can see the new instance of the Pet class will receive a name upon creation (which is defaulted to "Kitty").

python oop-在班上打电话

怀里藏娇 2025-02-19 16:13:28

首先,确保您的防火墙会阻止所有IP之外的IP外部,除了您的应用服务器的IP,并允许访问端口 27017 上的数据库服务器。

编辑您的 /etc/mongod.conf 文件。

确保这些行出现在#网络接口下面,

net:
  port: 27017
  bindIp: 0.0.0.0

您可以通过下载MongoDB桌面客户端来测试您的设置在端口 27017 上。

要访问日志文件以查看哪些IP访问您的数据库,请再次查看您的 /etc/mongod.conf 文件,并查找##在哪里编写日志记录数据。这将是/var/log/mongodb/mongod.log

您可以使用此命令将日志文件转移到终端:

sudo cat /var/log/mongodb/mongod.log

First, ensure that your firewall blocks all outside IPs except for the IP of your app server and allow access to your database server on port 27017.

Edit your /etc/mongod.conf file.

Ensure these lines appear below # network interfaces

net:
  port: 27017
  bindIp: 0.0.0.0

You can test your setup by downloading a MongoDB desktop client like Robo 3T and whitelisting your own home/office computer's IP address for your server's firewall on port 27017.

To access your log file to see which IPs are accessing your database, look again at your /etc/mongod.conf file and look for # where to write logging data. This will be something like /var/log/mongodb/mongod.log

You can dump your log file to the terminal with this command:

sudo cat /var/log/mongodb/mongod.log

如何获取正在访问MongoDB数据库的IP地址?

怀里藏娇 2025-02-18 19:29:02

在使用过滤器功能之前,请确保您要过滤的表已加载。
大多数时候,我们都应用了视图()函数,这会防止表将表加载到内存中以供使用。

Before using the filter function, make sure the table you want to filter is loaded.
Most times we have the the view() function applied and this prevents the table from being loaded into memory for usage.

usemethod中的错误(“ filtr”):没有适用的方法&#x27; filter&#x27;应用于“ null”类的对象

怀里藏娇 2025-02-18 17:26:03

是的,您可以有多个约束,可以引用相同的主要(或唯一)约束。

如果愿意,则最多可以拥有4,294,967,292个外键,该键参考相同的主键(因为数据库中的最大约束数为4,294,967,293,但您需要一个主密钥约束)。

来自 oracle数据库参考,附录A.3逻辑数据库限制

此表描述了逻辑数据库项目的限制类型和限制值。

项目 限制的类型 限制值
约束 最大每列

无限

Oracle不能定义每列约束数的限制。但是,约束受到数据库中最大约束数量的限制。请参阅“ 约束 - 每个数据库最大”在此表中。

约束 每个数据库最大值 4,294,967,293

Yes, you can have multiple constraints that can reference the same primary (or unique) constraint.

If you wanted to, you could have up to 4,294,967,292 foreign keys that reference the same primary key (since the maximum number of constraints in a database is 4,294,967,293 but you would need one primary key constraint).

From the Oracle Database Reference, Appendix A.3 Logical Database Limits

This table describes limit types and limit values for logical database items.

Item Type of Limit Limit Value
Constraints Maximum per column

Unlimited

Oracle does not define a limit on the number of constraints per column. However, constraints are subject to the limit on the maximum number of constraints in the database. See the entry for "Constraints - Maximum per database" in this table.

Constraints Maximum per database 4,294,967,293

主要钥匙可以在两个不同表中充当外键吗?

怀里藏娇 2025-02-18 09:01:18

这样的事情:

library(sf)
df <- data.frame(x = lon, y = lat)
pts1 <- st_as_sf(x = df, coords = c('x', 'y'))
my_hull <- st_convex_hull(st_union(pts1))
plot(my_hull)

something like this:

library(sf)
df <- data.frame(x = lon, y = lat)
pts1 <- st_as_sf(x = df, coords = c('x', 'y'))
my_hull <- st_convex_hull(st_union(pts1))
plot(my_hull)

从最外面的空间坐标创建多边形

怀里藏娇 2025-02-18 08:46:54

注意:如前所述,最好不要进行任何更改,因为这会使应用程序不太安全。但是,要回答您的问题:

虽然可以通过覆盖模板文件来轻松修改当前密码字段的输出,但验证是硬编码,并且可以在文件。

要绕过验证,我们必须传递2条错误消息,即:

  • 请输入您当前密码的
  • 当前密码

以解决此,我们不会使用真实的当前密码,但是我们是要创建/添加额外的自定义数据,并在此基础上允许用户更改他的密码。


1)要绕过第一个通知,您必须覆盖模板文件。

替换50-53 @version 3.5.0

<p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
    <label for="password_current"><?php esc_html_e( 'Current password (leave blank to leave unchanged)', 'woocommerce' ); ?></label>
    <input type="password" class="woocommerce-Input woocommerce-Input--password input-text" name="password_current" id="password_current" autocomplete="off" />
</p>

<?php
// Get userID
$user_id = $user->ID;

// Generate salt
$salt = md5( openssl_random_pseudo_bytes( 32, $cstrong ) . wp_generate_password( 32, true, true ) );
$enc = $user_id . '::' . crypt( $user_id, $salt );

// NOT empty
if ( ! empty ( $enc ) ) {
    update_user_meta( $user_id, '_enc', $enc );
}

// Encodes data with MIME base64
$value = base64_encode( $enc );

// NOT empty
if ( ! empty ( $value ) ) {
    ?>
    <input type="hidden" name="password_current" id="password_current" value="<?php echo $value; ?>" />
    <?php
} else {
    ?>
    <p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
        <label for="password_current"><?php esc_html_e( 'Current password (leave blank to leave unchanged)', 'woocommerce' ); ?></label>
        <input type="password" class="woocommerce-Input woocommerce-Input--password input-text" name="password_current" id="password_current" autocomplete="off" />
    </p>
    <?php
}
?>

这将用指定值替换当前密码字段。此值基于当前 userId 和盐,然后在请求页面时将其保存为 user_meta


2)要绕过第二个通知,您可以使用 WordPress过滤器挂钩

/**
 * Filters whether the plaintext password matches the encrypted password.
 *
 * @since 2.5.0
 *
 * @param bool       $check    Whether the passwords match.
 * @param string     $password The plaintext password.
 * @param string     $hash     The hashed password.
 * @param string|int $user_id  User ID. Can be empty.
 */
function filter_check_password( $check, $password, $hash, $user_id ) {
    // Only for WooCommerce edit-account endpoint
    if ( ! is_wc_endpoint_url( 'edit-account' ) ) return $check;

    // Get meta
    $enc = get_user_meta( $user_id, '_enc', true );

    // NOT empty
    if ( ! empty ( $enc ) ) {
        // Get parts
        $parts = explode( '::', base64_decode( $password ) );

        // Compare user ID and data
        if ( $parts[0] == $user_id && str_contains( $enc, $parts[1] ) ) {
            $check = true;
        }
    }
    
    return $check;
}
add_filter( 'check_password', 'filter_check_password', 10, 4 );

这将确保使用我们的自定义 user_meta 而不是使用真实的当前密码(已加密)。匹配时,我们允许更改密码

Note: as indicated it is better not to make any changes as this will make the application less secure. However, to answer your question:

While the output from the current password field can be easily modified by overwriting the template file, the validation is hard coded and can be found in the /includes/class-wc-form-handler.php file.

To bypass the validation we have to pass 2 error messages, namely:

  • Please enter your current password
  • Your current password is incorrect

To get around this, we are not going to use the real current password, but we are going to create/add extra custom data, and on that basis allow the user to change his password.


1) To bypass the first notice you will have to overwrite the /myaccount/form-edit-account.php template file.

Replace line 50 - 53 @version 3.5.0

<p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
    <label for="password_current"><?php esc_html_e( 'Current password (leave blank to leave unchanged)', 'woocommerce' ); ?></label>
    <input type="password" class="woocommerce-Input woocommerce-Input--password input-text" name="password_current" id="password_current" autocomplete="off" />
</p>

With

<?php
// Get userID
$user_id = $user->ID;

// Generate salt
$salt = md5( openssl_random_pseudo_bytes( 32, $cstrong ) . wp_generate_password( 32, true, true ) );
$enc = $user_id . '::' . crypt( $user_id, $salt );

// NOT empty
if ( ! empty ( $enc ) ) {
    update_user_meta( $user_id, '_enc', $enc );
}

// Encodes data with MIME base64
$value = base64_encode( $enc );

// NOT empty
if ( ! empty ( $value ) ) {
    ?>
    <input type="hidden" name="password_current" id="password_current" value="<?php echo $value; ?>" />
    <?php
} else {
    ?>
    <p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide">
        <label for="password_current"><?php esc_html_e( 'Current password (leave blank to leave unchanged)', 'woocommerce' ); ?></label>
        <input type="password" class="woocommerce-Input woocommerce-Input--password input-text" name="password_current" id="password_current" autocomplete="off" />
    </p>
    <?php
}
?>

This will replace the current password field with a hidden input field with a specified value. This value is based on the current userID and a salt, which is then saved as user_meta when the page is requested.


2) To bypass the second notification, you can use the check_password() WordPress filter hook

/**
 * Filters whether the plaintext password matches the encrypted password.
 *
 * @since 2.5.0
 *
 * @param bool       $check    Whether the passwords match.
 * @param string     $password The plaintext password.
 * @param string     $hash     The hashed password.
 * @param string|int $user_id  User ID. Can be empty.
 */
function filter_check_password( $check, $password, $hash, $user_id ) {
    // Only for WooCommerce edit-account endpoint
    if ( ! is_wc_endpoint_url( 'edit-account' ) ) return $check;

    // Get meta
    $enc = get_user_meta( $user_id, '_enc', true );

    // NOT empty
    if ( ! empty ( $enc ) ) {
        // Get parts
        $parts = explode( '::', base64_decode( $password ) );

        // Compare user ID and data
        if ( $parts[0] == $user_id && str_contains( $enc, $parts[1] ) ) {
            $check = true;
        }
    }
    
    return $check;
}
add_filter( 'check_password', 'filter_check_password', 10, 4 );

This will ensure that instead of using the real current password (which is encrypted), our custom user_meta is used. When it matches, we allow to change the password

更改密码,而无需在我的帐户中输入当前一个;在WooCommerce中编辑帐户

怀里藏娇 2025-02-17 19:24:55

无法使用部署的CandyMachineV2程序建立基于钱包的白名单。拥有此功能的唯一方法是抓住 cmv2程序并进行更新以允许钱包白名单而不是spl to的白名单,然后部署您的新CMV2,然后在Ur Mint页面中使用该新程序ID,然后在Ur Cli中创建和更新Candymachine

Its not possible to set up a Wallet-based whitelist using the deployed CandyMachineV2 Program. The only way of having this feature is grabbing the CMv2 program and update it to allow Wallet Whitelist instead of SPL-Token whitelist, then deploy your new CMv2 and use that new program ID in ur mint page and ur CLI to create and update the CandyMachine

使用Candy Machine V2设置基于WL钱包的方法

怀里藏娇 2025-02-17 06:42:47

我可以获取地图,但没有其他东西,我不确定我真的做对了。

但是,

在我的XAML中,我

//headers

...
<ContentView x:Name="mapView">

</ContentView>

在代码后面有(因为MVVM可能还没有工作),

using Location = Microsoft.Maui.Devices.Sensors.Location;

namespace xxx

public partial class MainPage : ContentPage
{

  IGeolocation geolocation;

  public Location location;

  public MainPage(MainPageViewModel viewModel, IGeolocation geolocation)
    {
        InitializeComponent();
    BindingContext = viewModel;

    this.geolocation = geolocation;
    location = new();
    GetLocation();
  }

  //follow the example at https://www.youtube.com/watch?v=eRXiiy800XY&list=PLfbOp004UaYVt1En4WW3pVuM-vm66OqZe&index=9 for getting the location

  public async void GetLocation()
  {
    try
    {
      location = await geolocation.GetLocationAsync(new GeolocationRequest
      {
        DesiredAccuracy = GeolocationAccuracy.Best,
        Timeout = TimeSpan.FromSeconds(30)
      });

//now for mapsui
      var smc = SphericalMercator.FromLonLat(location.Longitude, location.Latitude);
      
      var mapControl = new Mapsui.UI.Maui.MapControl();
      var map = mapControl.Map;
      map?.Layers.Add(Mapsui.Tiling.OpenStreetMap.CreateTileLayer());
      
      map.Widgets.Add(new ZoomInOutWidget { MarginX = 10, MarginY = 20 });  //adds the +/- zoom widget

      map.Home = n => n.NavigateTo(new MPoint(smc.x, smc.y), map.Resolutions[16]);  //0 zoomed out-19 zoomed in


      //Add this to my xaml
      mapView.Content = mapControl;
      




    }
    catch (Exception e)
    {
      Debug.WriteLine($"GM: Can't query location: {e.Message}");
    }
  }

}

您可能需要允许Mapsui.xxxx的某些进口,

现在我从悲惨的文档中注意到,有一种观点,即使用Xamarin表单,应该是可用的,并且应该是可用的。在毛伊岛中,

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             
             xmlns:mapsui="clr-namespace:Mapsui.UI.Maui;assembly=Mapsui.UI.Maui"
             
             xmlns:local="clr-namespace:RouteIt.ViewModels"
             x:Class="RouteIt.MainPage">
...

  <mapsui:MapView x:Name="mapView" />

</ContentPage>

这显示了略有不同(和更好)视图的轮廓,但我找不到使地图出现的神奇咒语。

我希望这可能会有所帮助。

g

编辑和在下一篇文章中30秒后我发现的

<mapsui:MapView x:Name="mapView" />

在代码中

mapView.Map = map;

,当您知道如何时,

很明显!!!!位置编辑以下操作

I can get the map, but not much else and I'm not sure that I'm really doing it right.

However,

In my xaml I have

//headers

...
<ContentView x:Name="mapView">

</ContentView>

In my code behind (as MVVM probably not working yet)

using Location = Microsoft.Maui.Devices.Sensors.Location;

namespace xxx

public partial class MainPage : ContentPage
{

  IGeolocation geolocation;

  public Location location;

  public MainPage(MainPageViewModel viewModel, IGeolocation geolocation)
    {
        InitializeComponent();
    BindingContext = viewModel;

    this.geolocation = geolocation;
    location = new();
    GetLocation();
  }

  //follow the example at https://www.youtube.com/watch?v=eRXiiy800XY&list=PLfbOp004UaYVt1En4WW3pVuM-vm66OqZe&index=9 for getting the location

  public async void GetLocation()
  {
    try
    {
      location = await geolocation.GetLocationAsync(new GeolocationRequest
      {
        DesiredAccuracy = GeolocationAccuracy.Best,
        Timeout = TimeSpan.FromSeconds(30)
      });

//now for mapsui
      var smc = SphericalMercator.FromLonLat(location.Longitude, location.Latitude);
      
      var mapControl = new Mapsui.UI.Maui.MapControl();
      var map = mapControl.Map;
      map?.Layers.Add(Mapsui.Tiling.OpenStreetMap.CreateTileLayer());
      
      map.Widgets.Add(new ZoomInOutWidget { MarginX = 10, MarginY = 20 });  //adds the +/- zoom widget

      map.Home = n => n.NavigateTo(new MPoint(smc.x, smc.y), map.Resolutions[16]);  //0 zoomed out-19 zoomed in


      //Add this to my xaml
      mapView.Content = mapControl;
      




    }
    catch (Exception e)
    {
      Debug.WriteLine(
quot;GM: Can't query location: {e.Message}");
    }
  }

}

You might need to allow some imports of mapsui.xxxx

Now I note from the woeful documentation that there is a view that Xamarin forms used and should be usable in Maui

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             
             xmlns:mapsui="clr-namespace:Mapsui.UI.Maui;assembly=Mapsui.UI.Maui"
             
             xmlns:local="clr-namespace:RouteIt.ViewModels"
             x:Class="RouteIt.MainPage">
...

  <mapsui:MapView x:Name="mapView" />

</ContentPage>

This shows the outline of a slightly different (and better) view, but I cannot find the magical incantation to make the map appear.

I hope that this might help.

G

EDIT and 30 seconds later in the next post I found

<mapsui:MapView x:Name="mapView" />

and in code

mapView.Map = map;

Obvious when you know how!!!!

Edit for location follow https://www.youtube.com/watch?v=eRXiiy800XY&list=PLfbOp004UaYVt1En4WW3pVuM-vm66OqZe&index=9

如何在毛伊岛的Mapsui中打开当前的位置图。我需要在我的毛伊岛应用程序上显示地图

怀里藏娇 2025-02-17 06:30:36

只需在您的app.components.ts中写入

<router-outlet></router-outlet>

,然后在导航组件中写

<a [routerLink]=“projecttype”>Project type</a>

Just write in your app.components.ts

<router-outlet></router-outlet>

And then in your navigation component make

<a [routerLink]=“projecttype”>Project type</a>

名称路由器出口剂量显示角部分

更多

推荐作者

櫻之舞

文章 0 评论 0

弥枳

文章 0 评论 0

m2429

文章 0 评论 0

野却迷人

文章 0 评论 0

我怀念的。

文章 0 评论 0

更多

友情链接

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文