Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 587

Gledy
Aspiring developer
Profile
Posts: 109
Reg: Feb 25, 2013
Fleet, UK
3,240
02/07/24 12:09 PM (1 year ago)

Location map Zoom

Hi, I've looked on previous forums and in Xcode but haven't found the right way to do it yet, I have set x amount of pins on a location map plugin, on certain ones the pins might be a little further away so when loading up the page on a device it can either not display any pins as the centre distance is too far or only show a couple of the pins. Basically I want to change the code so the initial zoom/center is of a larger distance so all pins show up. If anyone knows the answer, I'd appreciate it.
 
Cakebit
Code is Art
Profile
Posts: 502
Reg: Dec 15, 2010
In your local b...
16,520
like
02/09/24 12:18 AM (1 year ago)
Hi Gledy! In BT_Screens > bt_screen_map > BT_screen_map.m there is a section that is supposed to handle this automatically by scaling out to show all pins (lines 514 – 525)... but it looks like it's not been adjusted for the larger iPhone sizes. I'd recommend playing with the numbers to see if you can scale it to your map coordinates. Just adjust the multiplication numbers to scale or de-scale (is that a word?) until you get all your pins to show on the map at once. :) Cheers!
 
Gledy
Aspiring developer
Profile
Posts: 109
Reg: Feb 25, 2013
Fleet, UK
3,240
like
02/09/24 08:39 AM (1 year ago)
Hi Cakebit, I spent a lot of time yesterday messing around with loads of code and nothing helped, best I got it to do was zoom in even more to street level. I wanted to start again, so downloaded the project and moved the unedited bt_screen_map folder into my project.........and wouldn't you know it, without changing any code all the pins would appear on the screen. If that was just a fluke I'll try the scale or de-scale approach ;) Thanks pal
 
Gledy
Aspiring developer
Profile
Posts: 109
Reg: Feb 25, 2013
Fleet, UK
3,240
like
02/14/24 07:04 AM (1 year ago)
Ok so weird one, after an "un-edited" copy of the code it works as should do, but after a few tests of the page it will revert back to not showing all the pins. If you force close the app down on a live device and relaunch, it will go back to working as should for a bit. I've decided to just change the scale valves a couple of times and the best outcome for all maps so far is: if(UIDeviceOrientationIsPortrait([UIDevice currentDevice].orientation)){ region.center.latitude = topLeftCoord.latitude - (topLeftCoord.latitude - bottomRightCoord.latitude) * 0.5; region.center.longitude = topLeftCoord.longitude + (bottomRightCoord.longitude - topLeftCoord.longitude) * 0.5; region.span.latitudeDelta = fabs(topLeftCoord.latitude - bottomRightCoord.latitude) * 1.1; region.span.longitudeDelta = fabs(bottomRightCoord.longitude - topLeftCoord.longitude) * 1.1; }else{ region.center.latitude = topLeftCoord.latitude - (topLeftCoord.latitude - bottomRightCoord.latitude) * 0.5; region.center.longitude = topLeftCoord.longitude + (bottomRightCoord.longitude - topLeftCoord.longitude) * 0.5; region.span.latitudeDelta = fabs(topLeftCoord.latitude - bottomRightCoord.latitude) * 1.3; region.span.longitudeDelta = fabs(bottomRightCoord.longitude - topLeftCoord.longitude) * 1.3; } And all seems to be fine.
 
tomwang321
Aspiring developer
Profile
Posts: 7
Reg: Apr 18, 2025
location unknow...
70
like
04/23/25 12:43 AM (2 days ago)
POE 2 Currency in Prison Rehabilitation Programs Prison rehabilitation programs are designed to help inmates reintegrate into society by teaching valuable life skills, promoting personal growth, and encouraging positive behavioral changes. In recent years, there has been a growing interest in the role that gaming and digital economies can play in rehabilitation efforts. One intriguing concept that has emerged is the idea of using in-game currency, specifically from games like Path of Exile 2 (POE 2), to teach inmates essential skills such as financial management, teamwork, and decision-making. By integrating POE 2 currency into prison rehabilitation programs, correctional facilities can offer inmates a unique opportunity to develop competencies that are not only valuable within the game but can also translate into real-world applications. In POE 2, currency plays a crucial role in shaping the player's progression and success. It is used to purchase items, upgrade gear, and craft new equipment. The value of currency within the game fluctuates based on supply and demand, and players must make strategic decisions on how to best spend or invest their resources. By incorporating this in-game economy into rehabilitation programs, inmates can gain firsthand experience in managing resources, planning for long-term goals, and making informed decisions about how to allocate their limited assets. These skills are essential for anyone transitioning back into society, where financial literacy and careful budgeting can significantly impact an individual's ability to succeed. One of the key elements of using POE 2 currency in a prison setting is the opportunity to teach inmates about delayed gratification and impulse control. In the game, players are constantly faced with decisions about how to spend their currency. They may be tempted to use their resources quickly for short-term rewards, but doing so may hinder their ability to progress in the long run. This mirrors the financial challenges that many individuals face in real life, particularly those who have struggled with addiction or impulse control issues. By practicing these decision-making skills in a low-stakes environment, inmates can learn to better manage their finances once they are released. Furthermore, the in-game economy of POE 2 provides a valuable platform for teaching inmates about negotiation and collaboration. In the game's marketplace, players often trade items and currency with one another, requiring effective communication and negotiation skills. Inmates participating in rehabilitation programs can learn how to negotiate fair trades, assess the value of items, and engage in mutually beneficial transactions. These skills can be applied in real-world scenarios, such as negotiating salaries, securing housing, or managing finances in a way that promotes stability and independence. In addition to individual skills, POE 2 currency can also be used to promote teamwork and cooperation. Many of the game's activities, such as team-based boss fights or large-scale events, require players to work together in order to succeed. In a prison environment, this aspect of the game can help foster a sense of community and teach inmates how to collaborate effectively with others. By working together to accumulate in-game currency and resources, inmates can experience the value of cooperation and collective effort. These lessons can be particularly important for individuals who have struggled with isolation or antisocial behavior, as the game provides a structured way to practice positive social interactions in a controlled environment. Moreover, the fluctuating value of currency in POE 2 can introduce inmates to the concept of market dynamics and economic principles such as supply and demand. Inmates can learn how external factors influence the value of currency and how to adapt their strategies based on market changes. This can be a valuable lesson in understanding the broader economic systems that affect everyday life, from job markets to housing costs. By teaching inmates about these principles, rehabilitation programs can provide them with a deeper understanding of how the world works beyond the prison walls. The integration of POE 2 currency into prison rehabilitation programs also provides an innovative way to engage inmates in a meaningful and enjoyable activity. Traditional rehabilitation methods often rely on lectures, workshops, or group discussions, but games like POE 2 offer an interactive and immersive experience that can capture inmates' attention and encourage participation. The game's complexity and depth provide a stimulating challenge that can keep inmates engaged for long periods, offering them a productive outlet for their energy and focus. This engagement can help reduce the monotony and stress that often accompany life in prison, while also providing a constructive way to pass the time. By incorporating POE 2 currency into prison rehabilitation programs, correctional facilities can provide inmates with valuable life skills that are essential for reintegration into society. The lessons learned through managing in-game currency, negotiating trades, and working as part of a team can have lasting benefits for inmates as they prepare to reenter the workforce and contribute positively to their communities. As rehabilitation programs continue to evolve, the use of gaming and digital currencies could become an increasingly important tool in helping inmates build the skills and confidence they need to succeed. In addition to currency, U4GM[url]https://www.u4gm.com[/url] also provides a wide range of other PoE 2 items, including unique gear, skill gems, and crafting materials. Players can find everything they need to build powerful characters without grinding for hours. Recommended Article:Blasphemy PoE2 Incorrect Weapon Type[url]https://www.u4gm.com/path-of-exile-2/blog-blasphemy-poe2-incorrect-weapon-type[/url]
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.