dotnet-websharper / google.maps Goto Github PK
View Code? Open in Web Editor NEWWebSharper bindings to Google Maps API
License: Apache License 2.0
WebSharper bindings to Google Maps API
License: Apache License 2.0
It is also defined in both Main.fs
and Specification.fs
superfluously.
Hi,
I've been trying to use google maps' style types, and I believe you have an unwanted line in MapTypes.fs at line 26:
24: let MapTypeStyler =
25: Config "MapTypeStyler"
26: |+> Static [Constructor T]
If you comment out line 26 and rebuild, clients can use the MapTypeStyler
type, otherwise there is a compiler error because of the extra constructor definition.
Here is some code that currently fails to compile (fixed above):
[<JavaScript>]
module GoogleMaps =
open WebSharper.JavaScript
open WebSharper.Google.Maps
let mts = new MapTypeStyler()
hi!
I'm trying to build WebSharper.Google.Maps targeting WebSharper 7.0.3 beta3 and after removing some stale references from paket.references files, I'm facing this error message:
WEBSHARPERTASK : WebSharper error WS9001: Error running WIG assembly: System.ArgumentException: An item with the same key has already been added. Key: { Assembly = "WebSharper.Google.Maps" FullName = "WebSharper.Google.Maps.Map" } at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary
2.Add(TKey key, TValue value) at [email protected](Boolean intfAsClass, TypeDefinition typ) at Microsoft.FSharp.Collections.SeqModule.Iterate[T](FSharpFunc2 action, IEnumerable
1 source) in D:\a_work\1\s\src\FSharp.Core\seq.fs:line 603 at WebSharper.Compiler.Reflector.trAsm(IDictionary2 prototypes, AssemblyDefinition assembly, Boolean isTSasm) at WebSharper.Compiler.Reflector.TransformAssembly(IDictionary
2 prototypes, AssemblyDefinition assembly) at WebSharper.InterfaceGenerator.Compiler.Compile(Resolver resolver, CompilerOptions options, Assembly assembly, String filePath, FSharpOption1 originalAssembly) at WebSharper.InterfaceGenerator.Compiler.Compile(CompilerOptions options, Assembly assembly, String filePath, FSharpOption
1 original) at WebSharper.Compiler.CommandTools.RunInterfaceGenerator(AssemblyResolver aR, FSharpOption`1 snk, WsConfig config, LoggerBase logger) at [email protected](Unit unitVar0) [/home/vagrant/websharper/google.maps/WebSharper.Google.Maps/WebSharper.Google.Maps.fsproj::TargetFramework=netstandard2.0]
I've also removed the net461 reference, leaving only netstandard20.
The screenshot lists (grep command) where this namespace is located:
My (wild) guess is the compiler is having problem resolving module aliases.
Attached, you find the complete log from the dotnet fake build
output.
buid.log
My setup:
> uname -a
Linux vagrant 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
> dotnet --version
7.0.114
Is there any workaround for this issue?
Thanks,
Alex
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.