Comments (5)
I found this https://stackoverflow.com/a/58530025/1327555 that assumes LatLngLitteral must not be used in heatmap data. LatLng is the way. I tried to fix it but I cannot find the point in code that converts the .net types to js types (or something like this)
from blazorgooglemaps.
Could you post more code? I want to reproduce.
from blazorgooglemaps.
In Maps.razor (server-side project)
map1 = await Map.CreateAsync(JsRuntime, map1ElementRef, mapOptions1);
var heatMap = await HeatmapLayer.CreateAsync(JsRuntime, new HeatmapLayerOptions {
Map = map1,
Dissipating=true,
Radius=10,
});
var heatPoints = new[] {
new LatLngLiteral{
Lat = 15,
Lng = 15,
},
new LatLngLiteral{
Lat = 25,
Lng = 25,
},
};
await heatMap.SetData(heatPoints);
from blazorgooglemaps.
We serialize .net object to string and pass to object constructor. I have no problem with properties. Since LatLng uses method to return value this way will not work. I added commit to work with SetData with custom coordinates and added if in main method to convert to good format. Get solution and check server side sample. I added sample page with heatmap.
Check commit and let me know if you will make pull request with fixed rest parts? I could do it till September since i take some time.
from blazorgooglemaps.
Released with newest nuget. Closing.
from blazorgooglemaps.
Related Issues (20)
- Enabling Dependabot for repository
- AdvancedMarkerElementOptions - Content Invalid (not an instance of Node) HOT 13
- New method services.AddBlazorGoogleMaps("YOUR_KEY_GOES_HERE"); only is used in Maps, not other components HOT 1
- Blazor web app demo HOT 1
- Removed map HTMLElement from DOM still try to render map HOT 14
- Add Support for PinElement (AdvancedMarkerElement Customization) HOT 8
- AdvancedMarker from svg HOT 4
- Add way to set AdvancedMarker properties HOT 6
- Feature: Traffic, Transit and Bicycle Layer HOT 3
- Add support for rotation on Marker icon HOT 2
- Run js quality check with ChatGpt or similar quality tool HOT 4
- Incompatible with "Blazor Web App" Template HOT 7
- Property 'marker' not found Error HOT 4
- How to locate Label on top of Icon HOT 4
- AdvancedMarkerElement needs GetPosition or equivalent. HOT 4
- Long Click Listener HOT 2
- Feature. Add AdvancedMarkerElement Clustering HOT 3
- Add ability to set AdvancedMarkerElement Draggable Property HOT 2
- PlaceService GetDetails crash that JSON value could not be converted to GoogleMapsComponents.Maps.Places.PlaceResult[] HOT 3
- Blazor United HOT 10
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 blazorgooglemaps.