简体   繁体   English

要使用Mapstraction或Google Maps API V3?

[英]To use Mapstraction or Google maps api V3?

I am new to mapping and have gone through the V3 API tutorial and just heard about mapstraction. 我是映射的新手,并且已经通过V3 API教程,并且刚刚听说过mapstraction。 I wanted to know, which would be better to learn, considering that V3 is a complete write up of the google maps api? 我想知道,考虑到V3是google maps api的完整写本,学习哪个更好? I understand that mapstraction gives u more flexibilty but does the current version of Mapstraction take advantage of the new V3 features? 我知道mapstraction为您提供了更大的灵活性,但是当前版本的Mapstraction是否会利用新的V3功能?

Regards 问候

我建议不要使用抽象映射API,除非您有经常切换映射提供程序的特定要求。

I've been using Mapstraction fairly intensively on a couple of projects. 我已经在几个项目上相当密集地使用了Mapstraction。

On the plus side it's a very well written abstraction layer and works tremendously well. 从好的方面来说,它是一个写得很好的抽象层,并且运行得非常好。 The code is well structured, logical and handles everything you'd need for basic mapping. 该代码结构合理,逻辑合理,可以处理基本映射所需的一切。 With a bit of effort it's easily understandable and can be extended. 稍加努力,它就易于理解并且可以扩展。 Also the underlying bespoke map objects are still accessible, and you can write specific code against them. 底层的定制地图对象仍然可以访问,您可以针对它们编写特定的代码。

Against that there are a few issues. 与此相反,存在一些问题。 Of course because it is an abstraction layer if you want to do anything specific to features unique to say google maps, then there is additional effort required over a straight implementation. 当然,因为它是一个抽象层,如果您想做一些特定于谷歌地图特有功能的事情,那么在直接实现上还需要付出额外的努力。 Bing maps is also only currently implemented on v6 instead of the improved v7. 必应地图目前仅在v6上实施,而不是在改进的v7上实施。

Personally I find the swap between Google, Bing and OpenSourceMap a real positive, especially in view of licencing issues and prices with Google and to a lesser extent Bing. 我个人认为Google,Bing和OpenSourceMap之间的交换确实是积极的,特别是考虑到与Google以及Bing的许可问题和价格有关。

So if you need a lot of google-specific features and can handle the licence issues then go with google, otherwise I'd recommend mapstraction. 因此,如果您需要很多Google特定的功能并且可以处理许可问题,请使用Google,否则,我建议您使用mapstraction。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM