Comments (8)
@Myster thanks for reporting, this will be release in the next version within the next couple of days.
from our.umbraco.gmaps.
@Myster pinCoordinates
is represented by the Address.Coordinates
object. The centerCoordinates
should be represented by the MapConfig.CenterCoordinates
property if the map is moved, for example (taken from the example projects):
<h3>Address</h3>
<ul>
<li>
Coordinates (@Model.SingleMap.Address.Coordinates):
<ul>
<li>Latitude: @Model.SingleMap.Address.Coordinates.Latitude</li>
<li>Longitude: @Model.SingleMap.Address.Coordinates.Longitude</li>
</ul>
</li>
<li>FullAddress: @Model.SingleMap.Address.FullAddress</li>
<li>StreetNumber: @Model.SingleMap.Address.StreetNumber</li>
<li>Street: @Model.SingleMap.Address.Street</li>
<li>City: @Model.SingleMap.Address.City</li>
<li>State: @Model.SingleMap.Address.State</li>
<li>PostalCode: @Model.SingleMap.Address.PostalCode</li>
<li>Country: @Model.SingleMap.Address.Country</li>
</ul>
<h3>MapConfig</h3>
<ul>
<li>ApiKey: @Model.SingleMap.MapConfig.ApiKey</li>
<li>Zoom: @Model.SingleMap.MapConfig.Zoom</li>
<li>
CenterCoordinates @(Model.SingleMap.MapConfig.CenterCoordinates):
@if (Model.SingleMap.MapConfig.CenterCoordinates != null)
{
<ul>
<li>Latitude: @Model.SingleMap.MapConfig.CenterCoordinates.Latitude</li>
<li>Longitude: @Model.SingleMap.MapConfig.CenterCoordinates.Longitude</li>
</ul>
} else {
<span><b>Center Coordinates IS NULL</b></span>
}
</li>
<li>MapType: @Model.SingleMap.MapConfig.MapType</li>
</ul>
from our.umbraco.gmaps.
@Myster I found the issue, will be fixed in release 2.0.7 in the next couple of days :)
from our.umbraco.gmaps.
Also note:
I can only access the CenterCoordinates
via Our.Umbraco.GMaps.Models.MapConfig
I think I should also be able to access the PinCoordinates
also.
from our.umbraco.gmaps.
@Myster are you able to test the latest version (2.0.6) and see if your issue is resolved or not?
from our.umbraco.gmaps.
Hi @robertjf
Unfortunately, I still have the same/similar issue.
The parts I see contributing to the issue are:
- saving the content in admin should persist BOTH the pinCoordinates and centerCoordinates.
- the front end has no access to the pinCoordintes
In the back office, I see the pin coordinates persist correctly, but the centre coordinates always reset to be the same as the pin when I load the back office. However, IIRC the difference is that v2.0.6 seems to not update any coordinates unless I interact with the map (drag or re-search for the address)
Persisting-or-not based on interaction would be a red herring if both coordinates persisted. (I'm not sure if that's what you were trying to address or not)
Thanks for your work on this plugin. :-)
from our.umbraco.gmaps.
it sounds like the Umbraco Backoffice rendering of the map is ignoring CenterCoordinates
even though they are persisted when you save the content node. I'll take a look.
from our.umbraco.gmaps.
Awesome, thanks @robertjf
from our.umbraco.gmaps.
Related Issues (20)
- Console Error in Back-office: "No url found for api name gMapsBaseUrl" HOT 5
- Zoom int or string HOT 6
- Entering a coordinate HOT 4
- Umbraco 10 support HOT 1
- files are copying into every project inside the solution HOT 6
- Coordinates are not parsed correctly on non-en-US cultures HOT 2
- Core dll not included for .NET 6 in NuGet package HOT 1
- coordinates not supported when serialising/deserialising with System.Text.Json HOT 1
- not loading in backoffice HOT 3
- Controller registered as a front-end controller and not a backoffice controller HOT 1
- Zoom currently breaks when using Legacy data (str vs int) HOT 3
- Support for various Umbraco versions HOT 2
- Add a ToString() override to the Address object so that it can display the full address in an interpolated string.
- GMaps not displayed in Back Office (Umbraco 11.2.2) HOT 1
- Prevent address values from being format to all lowercase in views ? HOT 11
- v3.0 doesn't install into Umbraco v10
- Umbraco v8 (GMaps: 1.3.3) to Umbraco v10 (GMaps 3.0.0) legacy data value converter issues HOT 1
- Revisited: Umbraco v8 (GMaps: 1.3.3) to Umbraco v10 (GMaps 3.0.0) legacy data value converter issues
- Plans for Umbraco 14?
- MapType of styled_map, fails to deserialize.. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from our.umbraco.gmaps.